Feature Request
Poetry should set its own user agent. Currently it makes all requests (both for package versions list retrieval and package download) with the default one provided by the requests library: python-requests/<version>, e.g. python-requests/2.31.0.
Lack of an unique user agent makes it tricky to differentiate between installer and human requests.
Why is it important?
We're using Devpi for our internal index. It supports both human-readable and simple listings of packages. Simple one is available through a dedicated suffix or if one of two requirements is matched - user agent is specific to installers or Accept header is set to installer-specific. See this code for currently supported values.
But there is another reason such a differentiation is useful - it makes it possible to show cached data to installers while avoiding stale results when traversed manually.
Feature Request
Poetry should set its own user agent. Currently it makes all requests (both for package versions list retrieval and package download) with the default one provided by the
requestslibrary:python-requests/<version>, e.g.python-requests/2.31.0.Lack of an unique user agent makes it tricky to differentiate between installer and human requests.
Why is it important?
We're using Devpi for our internal index. It supports both human-readable and simple listings of packages. Simple one is available through a dedicated suffix or if one of two requirements is matched - user agent is specific to installers or
Acceptheader is set to installer-specific. See this code for currently supported values.But there is another reason such a differentiation is useful - it makes it possible to show cached data to installers while avoiding stale results when traversed manually.