Skip to main content

uritools

Latest PyPI version CI build status Documentation build status Test coverage License

This module provides RFC 3986 compliant functions for parsing, classifying and composing URIs and URI references, largely replacing the Python Standard Library’s urllib.parse module.

>>> from uritools import uricompose, urijoin, urisplit, uriunsplit
>>> uricompose(scheme='foo', host='example.com', port=8042,
...            path='/over/there', query={'name': 'ferret'},
...            fragment='nose')
'foo://example.com:8042/over/there?name=ferret#nose'
>>> parts = urisplit(_)
>>> parts.scheme
'foo'
>>> parts.authority
'example.com:8042'
>>> parts.getport(default=80)
8042
>>> parts.getquerydict().get('name')
['ferret']
>>> parts.isuri()
True
>>> parts.isabsuri()
False
>>> urijoin(uriunsplit(parts), '/right/here?name=swallow#beak')
'foo://example.com:8042/right/here?name=swallow#beak'

For various reasons, urllib.parse is not compliant with current Internet standards. As stated in Lib/urllib/parse.py:

RFC 3986 is considered the current standard and any future changes to urllib.parse module should conform with it. The urllib.parse module is currently not entirely compliant with this RFC due to defacto scenarios for parsing, and for backward compatibility purposes, some parsing quirks from older RFCs are retained.

This module aims to provide fully RFC 3986 compliant replacements for the most commonly used functions found in urllib.parse. It also includes functions for distinguishing between the different forms of URIs and URI references, and for conveniently creating URIs from their individual components.

Installation

uritools is available from PyPI and can be installed by running:

pip install uritools

Project Resources

License

Copyright (c) 2014-2026 Thomas Kemmer.

Licensed under the MIT License.

Metadata

Release files for uritools 7.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for uritools 7.0.0
File Size Uploaded Provenance Actions
uritools-7.0.0.tar.gz 29.0 kB Without provenance Details for uritools-7.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for uritools 7.0.0
File Interpreter ABI Platform Actions
uritools-7.0.0-py3-none-any.whl Python 3 none any Details for uritools-7.0.0-py3-none-any.whl

Total release size: 41.2 kB

Release files / uritools-7.0.0.tar.gz

Download URL uritools-7.0.0.tar.gz
Size 29.0 kB
Tags Source
SHA-256 checksum
How to use checksums
110b773e3f8fbaebcdcbe1377d04e418b1985adf69deeca4ed569f3e328cbf48
BLAKE2b-256 checksum
How to use checksums
3ee1b07a86b2bc864fce392709659881f3bad0be9729e06e276299b12e20ee03
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.4

Release files / uritools-7.0.0-py3-none-any.whl

Download URL uritools-7.0.0-py3-none-any.whl
Size 12.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
41a5d1c0ff82d73fc3c59a34e8103f699791d41fff9e3bd272a055249641b889
BLAKE2b-256 checksum
How to use checksums
7d6ddf2746975b6c43aec6f0f50ddc1fa8e5dc5b579ebd2afa75173b4b23518b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.4

Security for uritools 7.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

7.0.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page