Skip to main content

pyFaup - Python bindings for the Faup library

Faup is a URL parser, this is the Python library.

Examples

Example 1: Parse a URL

from pyfaup.faup import Faup

f = Faup()
f.decode("https://pypi.org/project/pyfaup")
print("TLD:" + f.get_tld())

This will extract all the TLDs. Replace get_tld() with get() to grab all the parsed items.

Example 2: Multithreading

Reading from a file one url per line in multiple threads (example contributed by Sebastien Larinier):

from pyfaup.faup import Faup
import threading

NUM_THREADS=5
URLS_TO_READ="your_urls_file.txt"

class ThreadFaup(threading.Thread):
    def __init__(self,list_url,f):
        self.list_url=list_url
        threading.Thread.__init__(self)
        self.f=f
    def run(self):
        for url in self.list_url:
        self.f.decode(url)
        print self.f.get()

with open(URLS_TO_READ,'r') as fd:
    for line in fd:
        line=line.replace('\r\n','')
        list_url.append(line)

f=Faup()
for i in range(0,NUM_THREADS):
    t=ThreadFaup(list_url,f)
    t.start()

Installation

pip install pyfaup

Wheels bundle the faup C library (libfaupl) for Linux x86_64/aarch64 and macOS x86_64/arm64, and work with any Python 3.8+. Building from source requires CMake and a C compiler: run pip install . from the root of the faup repository.

Metadata

Release files for pyfaup 1.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyfaup 1.7
File Size Uploaded Provenance Actions
pyfaup-1.7.tar.gz 847.4 kB With provenance Details for pyfaup-1.7.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for pyfaup 1.7
File Actions
pyfaup-1.7-py3-none-musllinux_1_2_x86_64.whl Python 3 none Linux musl 1.2+ x86-64 Details for pyfaup-1.7-py3-none-musllinux_1_2_x86_64.whl
pyfaup-1.7-py3-none-musllinux_1_2_aarch64.whl Python 3 none Linux musl 1.2+ ARM64 Details for pyfaup-1.7-py3-none-musllinux_1_2_aarch64.whl
pyfaup-1.7-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl Python 3 none Linux glibc 2.17+ x86-64, Linux glibc 2.28+ x86-64 Details for pyfaup-1.7-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
pyfaup-1.7-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl Python 3 none Linux glibc 2.28+ ARM64, Linux glibc 2.17+ ARM64 Details for pyfaup-1.7-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
pyfaup-1.7-py3-none-macosx_11_0_arm64.whl Python 3 none macOS 11.0+ ARM64 Details for pyfaup-1.7-py3-none-macosx_11_0_arm64.whl
pyfaup-1.7-py3-none-macosx_10_13_x86_64.whl Python 3 none macOS 10.13+ x86-64 Details for pyfaup-1.7-py3-none-macosx_10_13_x86_64.whl

Total release size: 1.8 MB

Release files / pyfaup-1.7.tar.gz

Download URL pyfaup-1.7.tar.gz
Size 847.4 kB
Tags Source
SHA-256 checksum
How to use checksums
48862397a43f301c4475491788a130d762b93dba800c3aa3026313f1a8f6b158
BLAKE2b-256 checksum
How to use checksums
0695259b24a4fc2207c4868562d18460c5cc7bbfe727588958baed80891d9baf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 15, 2026.

Transparency log

Release files / pyfaup-1.7-py3-none-musllinux_1_2_x86_64.whl

Download URL pyfaup-1.7-py3-none-musllinux_1_2_x86_64.whl
Size 158.7 kB
Tags Linux musl 1.2+ x86-64 Python 3
SHA-256 checksum
How to use checksums
eb9edce0eeb4b7920e8970a155362c968f3f645568c763013f159ee7f5745a61
BLAKE2b-256 checksum
How to use checksums
b554c0ffebe04e1ebfa9e7a4d23a483494f61e6973d0254a0cc2ab879000f573
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 15, 2026.

Transparency log

Release files / pyfaup-1.7-py3-none-musllinux_1_2_aarch64.whl

Download URL pyfaup-1.7-py3-none-musllinux_1_2_aarch64.whl
Size 157.4 kB
Tags Linux musl 1.2+ ARM64 Python 3
SHA-256 checksum
How to use checksums
b2c217ec3b079d7c21c32bca6dcfdc56dbd5b5ea1b48ce23317aa24ce9223839
BLAKE2b-256 checksum
How to use checksums
99781ed07bff2bd8acec4441722f09e6d6dae09dace93560e5f01bf88caa64ce
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 15, 2026.

Transparency log

Release files / pyfaup-1.7-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl

Download URL pyfaup-1.7-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Size 157.9 kB
Tags Linux glibc 2.17+ x86-64 Linux glibc 2.28+ x86-64 Python 3
SHA-256 checksum
How to use checksums
e4f2f862dde98591c348f0a0c871ae12413e0b170a144dc971d85a241ada7ad7
BLAKE2b-256 checksum
How to use checksums
e7c9c2bfb4f3c169f47aa2259e5dc7a8c3eb039291fb6f5bb2b9d7ad3eb34d91
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 15, 2026.

Transparency log

Release files / pyfaup-1.7-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl

Download URL pyfaup-1.7-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
Size 155.7 kB
Tags Linux glibc 2.17+ ARM64 Linux glibc 2.28+ ARM64 Python 3
SHA-256 checksum
How to use checksums
fb8049ac83a8d76f402eb17fd8729cf0a7e92bd718b73291c109e1f4db9cffa8
BLAKE2b-256 checksum
How to use checksums
aa19838163d7b982a0c812b458e979e863f59317515bf1704f434b7fffbbeed0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 15, 2026.

Transparency log

Release files / pyfaup-1.7-py3-none-macosx_11_0_arm64.whl

Download URL pyfaup-1.7-py3-none-macosx_11_0_arm64.whl
Size 142.9 kB
Tags Python 3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
30ae492f7975040bdc170fed5f800de51ae88a15518d17d6bb0e7ddc0085d6ac
BLAKE2b-256 checksum
How to use checksums
33940ada0fc1c9c8125f976731aa2ff412dcb9e7d992b47f49172c9db95b6ab0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 15, 2026.

Transparency log

Release files / pyfaup-1.7-py3-none-macosx_10_13_x86_64.whl

Download URL pyfaup-1.7-py3-none-macosx_10_13_x86_64.whl
Size 146.1 kB
Tags Python 3 macOS 10.13+ x86-64
SHA-256 checksum
How to use checksums
c70abcbe3415f1f6e127d7e59410d02a72b9bd902a2d3f84e1ae29b8a19e5917
BLAKE2b-256 checksum
How to use checksums
f82fd0e781b291c9b73c2c24b2d9a0074a707e9be8af2f0edf9686e76e82b42c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 15, 2026.

Transparency log

Security for pyfaup 1.7

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.

Full provenance

All 7 files in this release have been uploaded with provenance metadata.

Select from 7 files

Attestation for pyfaup-1.7.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 15, 2026.

Transparency log

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.

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