Registry / serialization / pyuri
library0.3.1pypypiunverified

pyuri is a Python library for proper URI parsing and manipulation. It fully conforms to RFC 3986 and provides a clean API for working with URIs. Current version 0.3.1 is stable but in maintenance mode; releases are infrequent.

pip install pyuri
INSTALL
IMPORT
SIG · PYURI
P
pyuri
serializationpythonv0.3.1
Install
1.6s avg
Import
552ms
Disk
16MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v0.3.1 · 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.103.95 runs
installs and imports cleanly · install 0.0s · import 0.352s · 18.4MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 1.6s · import 0.310s · 19MB
16MB installed
● package 16MB
Code
Verified usage

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

URI
from pyuri import URI
from pyuri import URI

Parse and access components of a URI.

from pyuri import URI uri = URI('http://example.com/path?q=test') print(uri.scheme) # http print(uri.host) # example.com print(uri.path) # /path print(uri.query) # q=test print(uri.authority) # example.com
Debug
Known issues
deprecatedPython 2 support was deprecated in 0.3.0. Use Python 3.6+.
fix
Upgrade to Python 3.6+ and pyuri 0.3.1.
affects: <=0.2.1
gotchaURI objects are immutable; you cannot modify components in-place. Use `replace()` to create a new URI.
fix
Use `new_uri = uri.replace(scheme='https')` to get a modified copy.
affects: all
gotchaThe library does not normalize URI paths automatically. Trailing slash or relative paths are kept as-is.
fix
Normalize manually if needed, e.g., using Python's `urllib.parse.urldefrag()` or external tools.
affects: all
breakingIn 0.3.0, the `URI` class replaced the old `URI` from `pyuri.uri`. Old imports from `pyuri.uri` will fail.
fix
Use `from pyuri import URI` instead of `from pyuri.uri import URI`.
affects: >=0.3.0
Upgrade
Version history
0.3.1latest on PyPI · released Mar 27, 2017
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources