pyfaup-rs
Python bindings for faup-rs Rust library
What it is and what it does
pyfaup-rs is a Python URL parser built in Rust using PyO3, designed to extract and normalize URL components efficiently. It parses a URL string into scheme, credentials, host, subdomain, domain, TLD, port, path, query, and fragment, exposing them as attributes on a Url object. The package also provides a FaupCompat class that mimics the original Faup C library's API for backward compatibility with legacy code.
The library targets developers who need fast, reliable URL decomposition—particularly in security, web scraping, or data processing pipelines where URL parsing is a frequent operation. It has no runtime dependencies and installs via pre-built wheels for most common Python and platform combinations, though source builds require a Rust toolchain.
Use it for:
- Extract domain and TLD from URLs in bulk for security scanning or threat intelligence workflows.
- Parse credentials, host, and port from URLs in web scraping or API client code.
- Normalize and decompose URLs in data pipelines for deduplication or classification.
- Migrate legacy code using the original Faup library to Python without rewriting URL parsing logic.
- Validate and decompose user-supplied URLs in web applications or CLI tools.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Parses URLs into components (scheme, host, port, path, query, credentials, domain, TLD) with a Rust backend for speed, offering both a modern API and backward compatibility with the legacy Faup C library.
Yes, if you need fast URL parsing in Python 3.8+ and can accept GPLv3 licensing. The Rust backend, zero runtime dependencies, and broad wheel coverage make it a low-friction choice for URL decomposition tasks. The active maintenance and recent release are positive signals. Avoid if your project requires proprietary licensing or if you are already satisfied with urllib.parse's performance.
Install
pyfaup-rs on PyPI
pip
pip install pyfaup-rsuv
uv add pyfaup-rspoetry
poetry add pyfaup-rsInstalling pyfaup-rs
Before you install
Medium install friction due to compiled wheels; pre-built binaries available for Python 3.10–3.11 across Linux, macOS, and Windows architectures. Active maintenance with a recent release (18 days old).
License in practice
Licensed under GPLv3 (copyleft); any derivative or distributed work must also be open-source under GPLv3. Acceptable for internal use and open-source projects, but incompatible with proprietary software that cannot adopt the same license.
Quickstart
pip install pyfaup-rs
from pyfaup import Url
url = Url("https://user:pass@sub.example.com:8080/path?query=value#fragment")
print(url.scheme, url.host, url.port)
Requires Python 3.8 or later; pre-built wheels available for Python 3.10–3.11, source builds require Rust toolchain.
Verify before relying
- Performance benchmarks comparing pyfaup-rs to urllib.parse or other URL parsing libraries.
- Whether the FaupCompat class is materially slower than the Url class in practice.
- Support status and timeline for Python 3.12+ wheels.
Package facts
| License | GPL-3.0 (copyleft) |
| Python support | supports the current Python release (>=3.8) |
| Install friction | medium — platform-specific wheel |
| Runtime dependencies | none |
| Maintenance | actively maintained — 18 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 92,474/month — #13,451 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: pyfaup_rs-0.4.16-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl; pyfaup_rs-0.4.16-cp310-cp310-manylinux_2_17_armv7l.manylinux2014_armv7l.whl; pyfaup_rs-0.4.16-cp310-cp310-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl; pyfaup_rs-0.4.16-cp310-cp310-manylinux_2_17_s390x.manylinux2014_s390x.whl; pyfaup_rs-0.4.16-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl; pyfaup_rs-0.4.16-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.whl; pyfaup_rs-0.4.16-cp310-cp310-musllinux_1_2_aarch64.whl; pyfaup_rs-0.4.16-cp310-cp310-musllinux_1_2_armv7l.whl; pyfaup_rs-0.4.16-cp310-cp310-musllinux_1_2_i686.whl; pyfaup_rs-0.4.16-cp310-cp310-musllinux_1_2_x86_64.whl; pyfaup_rs-0.4.16-cp310-cp310-win_amd64.whl; pyfaup_rs-0.4.16-cp311-cp311-macosx_10_12_x86_64.whl; pyfaup_rs-0.4.16-cp311-cp311-macosx_11_0_arm64.whl; pyfaup_rs-0.4.16-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl; pyfaup_rs-0.4.16-cp311-cp311-manylinux_2_17_armv7l.manylinux2014_armv7l.whl; pyfaup_rs-0.4.16-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl; pyfaup_rs-0.4.16-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl; pyfaup_rs-0.4.16-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl; pyfaup_rs-0.4.16-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.whl; pyfaup_rs-0.4.16-cp311-cp311-musllinux_1_2_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
tldparseParses domain names into their constituent…
permissive · top 15,000 on PyPI
tldExtracts the top-level domain (TLD) and…
copyleft · top 5,000 on PyPI
furlfurl parses and manipulates URLs by providing a…
permissive · top 5,000 on PyPI
moviepilot-rustProvides Rust-accelerated parsing and filtering…
unclear · top 15,000 on PyPI
tldextractAccurately extracts subdomain, domain, and…
permissive · top 1,000 on PyPI
pyuriPyURI parses, constructs, and manipulates URIs…
permissive · top 15,000 on PyPI
dsnparseParses DSN (Data Source Name) connection URL…
permissive · top 15,000 on PyPI
urlpyurlpy parses, normalizes, and compares URLs…
permissive · top 15,000 on PyPI
git-url-parseParses Git repository URLs to extract…
permissive · top 15,000 on PyPI
fast-query-parsersParses query strings and URL-encoded form data…
permissive · top 15,000 on PyPI