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

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.8
File Size Uploaded Provenance Actions
pyfaup-1.8.tar.gz 849.9 kB With provenance Details for pyfaup-1.8.tar.gz

Built distributions (wheels)

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

Total release size: 1.8 MB

Release files / pyfaup-1.8.tar.gz

Download URL pyfaup-1.8.tar.gz
Size 849.9 kB
Tags Source
SHA-256 checksum
How to use checksums
7df53505036b2d772370224e78d12c5177a114eb58b7eb800724024ab49a6eaa
BLAKE2b-256 checksum
How to use checksums
3fbc05cfc800c9351ddae80b0ee59fc20ad7da9dbce3be8ac6662ada63b1c2f3
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 16, 2026.

Transparency log

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

Download URL pyfaup-1.8-py3-none-musllinux_1_2_x86_64.whl
Size 159.9 kB
Tags Linux musl 1.2+ x86-64 Python 3
SHA-256 checksum
How to use checksums
3156a86761157f475b973625fe3e21ca6ab52153ee088e95d3ebcb7d1b0a7d99
BLAKE2b-256 checksum
How to use checksums
e8e00c7c55c554de2c33b1438b6e08e77b182042e1bc46fb414abf73d4027b45
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 16, 2026.

Transparency log

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

Download URL pyfaup-1.8-py3-none-musllinux_1_2_aarch64.whl
Size 158.4 kB
Tags Linux musl 1.2+ ARM64 Python 3
SHA-256 checksum
How to use checksums
47fa12c104146e4bfcb11c3faf2d5d299b9584c8465910dee4c3755441086942
BLAKE2b-256 checksum
How to use checksums
8091ed10a6068619e9d8074a298dc6775284fe67d90aa3b45c397dac97dc5875
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 16, 2026.

Transparency log

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

Download URL pyfaup-1.8-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Size 159.2 kB
Tags Linux glibc 2.17+ x86-64 Linux glibc 2.28+ x86-64 Python 3
SHA-256 checksum
How to use checksums
bd45d398da0a45a5daea2f5451639c78a31aa678007d39336f41f22d49b9cb14
BLAKE2b-256 checksum
How to use checksums
cf08e6b7295dc6fddaf811f933507c6cbd29ea5e59fd60138cc47aee4d0cd0db
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 16, 2026.

Transparency log

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

Download URL pyfaup-1.8-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
Size 156.8 kB
Tags Linux glibc 2.17+ ARM64 Linux glibc 2.28+ ARM64 Python 3
SHA-256 checksum
How to use checksums
01926f883bf6eeedca1b9fd7524acc05be30d97e3eff093c87e4c292eb516a60
BLAKE2b-256 checksum
How to use checksums
1d0bc19c82caff257e2984162707bed45316b35703837f1e32390e0722caf09d
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 16, 2026.

Transparency log

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

Download URL pyfaup-1.8-py3-none-macosx_11_0_arm64.whl
Size 143.9 kB
Tags Python 3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
e2efa1b23e36c4363e23d8a0707b582a57818a24995b56d7f6e4df67b11c34b4
BLAKE2b-256 checksum
How to use checksums
907cd30e4696acf3cee424c980d5aeb48e27f582d154901b03d38d709b3e6f35
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 16, 2026.

Transparency log

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

Download URL pyfaup-1.8-py3-none-macosx_10_13_x86_64.whl
Size 147.1 kB
Tags Python 3 macOS 10.13+ x86-64
SHA-256 checksum
How to use checksums
077d80369b0d0c95c6b6f15584e54131390d7bcfe3d526f36e3d710d71d7d363
BLAKE2b-256 checksum
How to use checksums
309972da22cdf455fcbb650c4ce5f07f343bc6e590781f7c69dd6e657d789613
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 16, 2026.

Transparency log

Security for pyfaup 1.8

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.8.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 16, 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