skillfed

pyfaup-rs

Python bindings for faup-rs Rust library

pyfaup-rs v0.4.16 92.5K downloads/30d#13,451 on PyPI7
Copyleft license GPL-3.0 Active released

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-rs

uv

uv add pyfaup-rs

poetry

poetry add pyfaup-rs

Installing 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

Programming Language :: Python :: Implementation :: CPythonProgramming Language :: Python :: Implementation :: PyPyProgramming Language :: Rust

Tags

url parsing libraryparse url componentsfast url parserrust url parsingextract domain from urlurl scheme host port parserfaup python bindings
url-parsingrust-bindingssecurity-tools

More WWW/HTTP packages