Registry / http-networking / urlpy
library0.5pypypi✓ verified 88d ago

Simple URL parsing, canonicalization and equivalence library for Python. Current version 0.5, stable but rarely updated.

pip install urlpy
INSTALL
IMPORT
SIG · URLPY
U
urlpy
http-networkingpythonv0.5
Install
1.7s avg
Import
268ms
Disk
16MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.9–3.13
musl
3.9–3.13
Install & Compatibility
Where this runs
tested against v0.5 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.10–3.95 runs
installs and imports cleanly · install 0.0s · import 0.280s · 18.1MB
glibc
py 3.10–3.95 runs
installs and imports cleanly · install 1.7s · import 0.256s · 19MB
16MB installed
● package 16MB
Code
Verified usage

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

URL
✓ from urlpy import URL
✗ import urlpy
The top-level module does not expose URL directly; must use from import.

Parse, access components, and canonicalize a URL.

from urlpy import URL u = URL('http://example.com/foo?bar=baz') print(u.scheme, u.host, u.path) print(u.canonicalize())
Debug
Known issues
gotchaURL objects are mutable. Modifying attributes like u.scheme affects the original object.
fix
Use u.canonicalize() or create a new URL() for modifications.
affects: all
deprecatedThe library is in maintenance mode; no new features are added. May not be compatible with newer Python versions beyond 3.10.
fix
Consider using 'yarl' or 'urllib.parse' for active development.
affects: >=0.5
gotchaCanonicalization may lowercases the scheme and host, but does not sort query parameters.
fix
Manually sort query params if needed: u.query = '&'.join(sorted(u.query.split('&')))
affects: all
Errors
Common errors & fixes
AttributeError: module 'urlpy' has no attribute 'URL'
Using 'import urlpy' instead of 'from urlpy import URL'
fix
Use 'from urlpy import URL'
TypeError: 'URL' object does not support item assignment
Trying to modify a URL property by index instead of attribute
fix
Use attribute assignment like u.scheme = 'https'
Upgrade
Version history
0.5latest on PyPI · released Apr 28, 2020
Audit
Dependencies

No dependency data recorded yet.

Agent activity
24 hits · last 30 days
node
20
OpenAI (training)
1
Resources
urlpy — pip install urlpy · libregistry