ada-url
URL parser and manipulator based on the WHAT WG URL standard
What it is and what it does
ada-url is a Python binding to the Ada URL parser, a C library that implements the WHATWG URL standard. It provides three main interfaces: the URL class for object-oriented URL manipulation, parse_url for extracting all URL components into a dictionary, and URLSearchParams for handling query strings. The library also includes idna encoding/decoding for internationalized domain names.
Unlike Python's standard urllib.parse, which follows the older RFC 3978 standard, ada-url correctly normalizes paths (resolving . and ..), properly encodes international characters in domain names, and handles edge cases defined by the WHATWG spec. It uses CFFI to call the underlying C library, making it faster than pure-Python alternatives for most URL parsing tasks. The package depends only on cffi and supports Python 3.10 and later across macOS, Linux, and Windows.
Use it for:
- Validate and normalize user-supplied URLs in web applications before storing or processing them.
- Extract and manipulate URL components (hostname, path, query parameters) in web scrapers or API clients.
- Parse and handle internationalized domain names (IDNs) in multilingual applications.
- Resolve relative URLs and normalize paths in document processing or link crawling.
- Build query strings and search parameters programmatically with URLSearchParams.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Parse, validate, and manipulate URLs according to the WHATWG URL standard, with support for internationalized domain names and path normalization.
Yes, if you need WHATWG-compliant URL parsing. The library is actively maintained, has no known vulnerabilities, and offers standards compliance and performance benefits over urllib.parse. Install friction is moderate due to compiled wheels, but prebuilt binaries cover current Python versions and common platforms. The Apache-2.0 license is permissive. Suitable for production use in web applications, API clients, and data processing pipelines.
Install
ada-url on PyPI
pip
pip install ada-urluv
uv add ada-urlpoetry
poetry add ada-urlInstalling ada-url
Before you install
Medium install friction due to compiled wheels; prebuilt binaries are available for current Python versions (3.10+) and common platforms, but installation requires a C compiler if building from source. Actively maintained with recent releases.
License in practice
Apache-2.0 permissive license allows commercial use, modification, and redistribution with minimal restrictions—suitable for most projects.
Quickstart
pip install ada_url
from ada_url import URL, parse_url
url = URL('https://example.org/path/../file.txt')
print(url.href) # 'https://example.org/path/file.txt'
result = parse_url('https://user:pass@example.org:80/api?q=1#2')
print(result['hostname']) # 'example.org'
Requires Python 3.10 or later.
Verify before relying
- Actual performance comparison with urllib.parse under typical workloads remains unquantified in the fact sheet.
- Whether CFFI dependency introduces runtime overhead or platform-specific compatibility issues beyond the prebuilt wheels.
Package facts
| License | Apache-2.0 (permissive) |
| Python support | supports the current Python release (>=3.10) |
| Install friction | medium — platform-specific wheel |
| Runtime dependencies | 1 — cffi |
| Maintenance | actively maintained — 17 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 464,947/month — #6,513 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: ada_url-4.0.0-cp310-cp310-macosx_10_15_universal2.whl; ada_url-4.0.0-cp310-cp310-macosx_10_15_x86_64.whl; ada_url-4.0.0-cp310-cp310-macosx_11_0_arm64.whl; ada_url-4.0.0-cp310-cp310-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl; ada_url-4.0.0-cp310-cp310-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl; ada_url-4.0.0-cp310-cp310-musllinux_1_2_aarch64.whl; ada_url-4.0.0-cp310-cp310-musllinux_1_2_x86_64.whl; ada_url-4.0.0-cp310-cp310-win_amd64.whl; ada_url-4.0.0-cp311-cp311-macosx_10_15_universal2.whl; ada_url-4.0.0-cp311-cp311-macosx_10_15_x86_64.whl; ada_url-4.0.0-cp311-cp311-macosx_11_0_arm64.whl; ada_url-4.0.0-cp311-cp311-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl; ada_url-4.0.0-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl; ada_url-4.0.0-cp311-cp311-musllinux_1_2_aarch64.whl; ada_url-4.0.0-cp311-cp311-musllinux_1_2_x86_64.whl; ada_url-4.0.0-cp311-cp311-win_amd64.whl; ada_url-4.0.0-cp312-cp312-macosx_10_15_universal2.whl; ada_url-4.0.0-cp312-cp312-macosx_10_15_x86_64.whl; ada_url-4.0.0-cp312-cp312-macosx_11_0_arm64.whl; ada_url-4.0.0-cp312-cp312-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Tags
More WWW/HTTP packages
urllib3 is an HTTP client library that provides…
permissive · top 100 on PyPI
requestsRequests is a Python HTTP library that…
permissive · top 100 on PyPI
h11h11 is a pure-Python HTTP/1.1 protocol…
permissive · top 100 on PyPI
httpxHTTPX is a fully featured HTTP client library…
permissive · top 100 on PyPI
httpcoreA minimal low-level HTTP client library that…
permissive · top 100 on PyPI
aiohttpaiohttp is an async HTTP client and server…
permissive · top 100 on PyPI
can-adaParses and manipulates URLs according to the…
permissive · top 15,000 on PyPI
urlcanonParses and normalizes URLs according to WHATWG…
permissive · top 15,000 on PyPI
url-normalizeStandardizes URLs to a canonical form by…
permissive · top 1,000 on PyPI
courlanValidates, normalizes, filters, and samples…
permissive · top 5,000 on PyPI
pyuriPyURI parses, constructs, and manipulates URIs…
permissive · top 15,000 on PyPI
uritoolsParses, validates, and composes URIs and URI…
permissive · top 5,000 on PyPI
idnaConverts domain names between Unicode and…
permissive · top 100 on PyPI
s3urlsParse and build Amazon S3 URLs in multiple…
permissive · top 15,000 on PyPI
wikitextparserParses and manipulates MediaWiki wikitext…
copyleft · top 15,000 on PyPI
query-stringParses URL query strings and fragments into…
permissive · top 15,000 on PyPI