poetry icon indicating copy to clipboard operation
poetry copied to clipboard

Support linehaul data in user agent

Open konstin opened this issue 3 months ago • 0 comments

Issue Kind

Brand new capability

Description

Linehaul is a feature by PyPI that allows querying statistics about the used platforms through BigQuery (https://github.com/pypi/linehaul-cloud-function). Clients query the host environment and attach this information as a JSON blob in the User Agent header. https://github.com/pypi/linehaul-cloud-function/blob/main/linehaul/ua/datastructures.py provides an overview over the datastructure.

Impact

This information is extremely valuable to understand usage across platforms, Python versions, CI and what components can or can't assume to present on a target system. Both pip and uv send linehaul data, but it would be valuable to increase the coverage.

Workarounds

The data is biased towards pip and uv

konstin avatar Nov 27 '25 13:11 konstin