--- id: uritools version: "6.1.3" license: MIT license_treatment: permissive maintenance: active --- # uritools — URI parsing, classification and composition License: permissive · Maintenance: active · Downloads: 12.5M/mo ## What it is and what it does uritools is a Python library that replaces urllib.parse with RFC 3986 compliant URI handling. It provides functions to parse URIs into components (scheme, authority, path, query, fragment), compose URIs from individual parts, resolve relative references, and classify URI forms. The module addresses urllib.parse's known non-compliance with RFC 3986 by offering fully standards-compliant alternatives for the most common URI operations. The package has no external runtime dependencies and installs as a pure Python wheel. It is designed for developers who need strict RFC 3986 compliance—particularly when parsing URIs from untrusted sources, building URI-heavy applications, or integrating with systems that enforce standards-based URI handling. The library includes convenience methods like getport() and getquerydict() to extract specific URI components without manual parsing. Use it for: - Parse and validate URIs from external APIs or user input with RFC 3986 compliance. - Compose URIs programmatically from scheme, host, port, path, and query parameters. - Resolve relative URI references against a base URI for link normalization. - Extract and manipulate individual URI components (authority, port, query dict) safely. - Replace urllib.parse in projects requiring strict standards compliance. ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. Parses, validates, and composes URIs and URI references according to RFC 3986, providing RFC-compliant alternatives to Python's urllib.parse module. Yes. uritools is actively maintained, has no dependencies, installs easily, carries no known vulnerabilities, and solves a real problem for developers who need RFC 3986 compliance. Install it if you parse URIs from external sources or need standards-strict URI handling; skip it if urllib.parse's quirks are acceptable for your use case. ## Install pip install uritools uv add uritools poetry add uritools ## Installing uritools Before you install: Low friction install with no runtime dependencies. Actively maintained as of 2026-08-01, marked Production/Stable, and supports current Python versions. License in practice: MIT license (permissive) allows use in both open-source and proprietary projects with minimal restrictions. Quickstart: pip install uritools from uritools import uricompose, urisplit uri = uricompose(scheme='foo', host='example.com', port=8042, path='/over/there', query={'name': 'ferret'}) parts = urisplit(uri) print(parts.scheme, parts.authority, parts.getport(default=80)) Requires Python 3.10 or later. ## Package facts - License: MIT (permissive) - Python support: supports_current - Install friction: low - Maintenance: active - Downloads: 12.5M/month (top 5,000 on PyPI) - Known vulnerabilities: none known ## Tags RFC 3986 URI parsing, URI composition and validation, parse URIs compliant, URI reference handling, urllib.parse alternative, URI splitting and joining, query string parsing, uri-parsing, rfc-3986, standards-compliant [View on SkillFed](https://skillfed.io/packages/uritools) · [View on PyPI](https://pypi.org/project/uritools/)