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 6.1.5

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 6.1.5
File Size Uploaded Provenance Actions
uritools-6.1.5.tar.gz 25.7 kB Without provenance Details for uritools-6.1.5.tar.gz

Built distribution (wheel)

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

Total release size: 37.9 kB

Release files / uritools-6.1.5.tar.gz

Download URL uritools-6.1.5.tar.gz
Size 25.7 kB
Tags Source
SHA-256 checksum
How to use checksums
5a46002351b745a6910f24167abc1ba0a7f78818121fffb32dbe1fc7767f462f
BLAKE2b-256 checksum
How to use checksums
33b2e8152d438268764677e234ce4edda134d86f0879b7f0bf8d5f5bc127a121
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.4

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

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

Security for uritools 6.1.5

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

6.1.5 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