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.6

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.6
File Size Uploaded Provenance Actions
pyfaup-1.6.tar.gz 847.2 kB With provenance Details for pyfaup-1.6.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for pyfaup 1.6
File Actions
pyfaup-1.6-py3-none-musllinux_1_2_x86_64.whl Python 3 none Linux musl 1.2+ x86-64 Details for pyfaup-1.6-py3-none-musllinux_1_2_x86_64.whl
pyfaup-1.6-py3-none-musllinux_1_2_aarch64.whl Python 3 none Linux musl 1.2+ ARM64 Details for pyfaup-1.6-py3-none-musllinux_1_2_aarch64.whl
pyfaup-1.6-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.6-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
pyfaup-1.6-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.6-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
pyfaup-1.6-py3-none-macosx_11_0_arm64.whl Python 3 none macOS 11.0+ ARM64 Details for pyfaup-1.6-py3-none-macosx_11_0_arm64.whl
pyfaup-1.6-py3-none-macosx_10_13_x86_64.whl Python 3 none macOS 10.13+ x86-64 Details for pyfaup-1.6-py3-none-macosx_10_13_x86_64.whl

Total release size: 1.8 MB

Release files / pyfaup-1.6.tar.gz

Download URL pyfaup-1.6.tar.gz
Size 847.2 kB
Tags Source
SHA-256 checksum
How to use checksums
bec3c8628ca7802e136a91a7ead1e15e129f1bb592c4e7e55046755fd43ac21a
BLAKE2b-256 checksum
How to use checksums
dd05ac7a5fa58bf295d0d35606e49d811823d8b0af49774081b18d665288c493
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.6-py3-none-musllinux_1_2_x86_64.whl

Download URL pyfaup-1.6-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
1589d931e4c698144aa6831650d339ba36017f97d6cef5fffb7b6539072eb07c
BLAKE2b-256 checksum
How to use checksums
6bc1c428bb5207d41643086ba01d2bac14987dea79627c486d5ce00193d176b0
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.6-py3-none-musllinux_1_2_aarch64.whl

Download URL pyfaup-1.6-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
42c5217d8db7a01531f37db940fb6e38b7902532eeda682dda14bc3672a02aa5
BLAKE2b-256 checksum
How to use checksums
e1c125266d4fa1598fe4d2b6dc76b6da2cba35d6431c29bc55bebeecfcdbb140
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.6-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl

Download URL pyfaup-1.6-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
014087b4eb8f3dfca8d156538312a530fd57d1eb8fdfc76631a6ead7952b1f27
BLAKE2b-256 checksum
How to use checksums
0905b55903f74510b42dc62d58fc173c2669346d5a2307bbabc3985df05c33bd
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.6-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl

Download URL pyfaup-1.6-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
c75fc8f0d8507b3b137169ac418c38afc219edd2cff6940d70722ac7f38f7e5d
BLAKE2b-256 checksum
How to use checksums
dd334a323c395d18b9509811af835741db85071281758e2bc3c66f1a4ee85f31
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.6-py3-none-macosx_11_0_arm64.whl

Download URL pyfaup-1.6-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
fc2521de850822fa08261b40f44f492b5747864b63200323b5f916bffd5b1cbe
BLAKE2b-256 checksum
How to use checksums
a69baf6cb4c3a7b3a7ccda5890c6b630f82e8d8d1825f9bcd93233f791f6a01c
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.6-py3-none-macosx_10_13_x86_64.whl

Download URL pyfaup-1.6-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
e466bcfefa2bd7393512511ad6645087fc4d3a1a81c1f6ecadd2741cb344fc91
BLAKE2b-256 checksum
How to use checksums
f522c4753786d95f63c147baa13afde88169c75423f2cdc943be6949f580a3a1
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.6

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.6.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