Registry / analytics / linehaul

linehaul

JSON →
library1.0.3pypypiunverified

User-Agent parsing library for PyPI analytics. Extracts and normalizes client information from HTTP User-Agent strings, used by the Warehouse packaging repository. Current version 1.0.3 supports Python 3.11+ with a simple API for parsing and categorizing user agents into known bots, browsers, and package managers.

pip install linehaul
INSTALL
IMPORT
SIG · LINEHAUL
L
linehaul
analyticspythonv1.0.3
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Linehaul
from linehaul import Linehaul
from linehaul import Linehaul

Initialize parser and parse a User-Agent string.

from linehaul import Linehaul parser = Linehaul() user_agent = 'pip/21.0.1 (linux; x86_64)' result = parser.parse(user_agent) print(result.dict())
Debug
Known issues
breakingPython 3.10 support was dropped in version 1.0.0; requires Python >=3.11.
fix
Upgrade to Python 3.11 or later.
affects: <1.0.0
gotchaThe parse() method raises ValueError for malformed User-Agent strings. Always wrap in try/except.
fix
try: result = parser.parse(user_agent); except ValueError: handle_error()
affects: >=1.0.0
deprecatedAs of v1.0.3, the library is in maintenance mode; no new features planned.
fix
Consider forking or using alternative libraries if new features needed.
affects: >=1.0.0
Upgrade
Version history
1.0.3latest on PyPI · released Feb 9, 2026
Audit
Dependencies

No dependency data recorded yet.

Agent activity
30 hits · last 30 days
node
28
OpenAI (training)
1
Resources
linehaul — pip install linehaul · libregistry