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, macOS x86_64/arm64 and Windows 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.9

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.9
File Size Uploaded Provenance Actions
pyfaup-1.9.tar.gz 853.5 kB With provenance Details for pyfaup-1.9.tar.gz

Built distributions (wheels)

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

Total release size: 2.1 MB

Release files / pyfaup-1.9.tar.gz

Download URL pyfaup-1.9.tar.gz
Size 853.5 kB
Tags Source
SHA-256 checksum
How to use checksums
35d727a225a11cead19c9c1867b0117f0c83cc5938e8356173587dc6d5722d0f
BLAKE2b-256 checksum
How to use checksums
d2972222cefe5a7eda4f5b1097d26e60f3c28339e74e3288ffb6b1a243236b61
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.9-py3-none-win_arm64.whl

Download URL pyfaup-1.9-py3-none-win_arm64.whl
Size 143.6 kB
Tags Python 3 Windows ARM64
SHA-256 checksum
How to use checksums
314015123101411b2f55bf2f1c2d2c08f09e9e9aaf07e3b7398eeb7f008a1fd2
BLAKE2b-256 checksum
How to use checksums
20a9599d5e220d61be28e283f4db4787e856c79b14e0f7a959c59288f710199a
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.9-py3-none-win_amd64.whl

Download URL pyfaup-1.9-py3-none-win_amd64.whl
Size 147.1 kB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
7228dd19b6e286fc1be8633b005fe917a452fb88d9c82900b5f029bd10bff448
BLAKE2b-256 checksum
How to use checksums
8f4086a0993e8e6498026d991c87ae378598c3afce9b6c0415548cfb7cacb909
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.9-py3-none-musllinux_1_2_x86_64.whl

Download URL pyfaup-1.9-py3-none-musllinux_1_2_x86_64.whl
Size 161.2 kB
Tags Linux musl 1.2+ x86-64 Python 3
SHA-256 checksum
How to use checksums
37e6e30209f603e2a260517cf3330168158ac65d44aa2399e0b3cb62bd6df805
BLAKE2b-256 checksum
How to use checksums
64477387020d2e6537313e941d4ca0bc5d4a7855c5cb3b493cae29e9f64722f9
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.9-py3-none-musllinux_1_2_aarch64.whl

Download URL pyfaup-1.9-py3-none-musllinux_1_2_aarch64.whl
Size 159.8 kB
Tags Linux musl 1.2+ ARM64 Python 3
SHA-256 checksum
How to use checksums
dcef1309f96f0cc5164e430d2109d670dcdd14b3dfb5a37744029c7247340935
BLAKE2b-256 checksum
How to use checksums
0eaaa10455331e208cfb30c940e323fd3a666ac4261262453f8ad022f58f674c
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.9-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl

Download URL pyfaup-1.9-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Size 160.3 kB
Tags Linux glibc 2.17+ x86-64 Linux glibc 2.28+ x86-64 Python 3
SHA-256 checksum
How to use checksums
3be08520a34f93fb8fd498f1cdae393d1609704e288fa0d8e12c3babfbda67f3
BLAKE2b-256 checksum
How to use checksums
905cb7dc77875830c7dd6f215bff6bde9abfd857d93164acfccc4075b6b57264
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.9-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl

Download URL pyfaup-1.9-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
Size 158.1 kB
Tags Linux glibc 2.17+ ARM64 Linux glibc 2.28+ ARM64 Python 3
SHA-256 checksum
How to use checksums
be18a1a8300e79422975ac5d4bb8a60c58db3e4f07d82e6ffecab0a2ddcfe0c9
BLAKE2b-256 checksum
How to use checksums
6f9cf32211ec5abc1baadd57a2250f4a882378956a4c3d6cf32ffcac9ec17d3c
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.9-py3-none-macosx_11_0_arm64.whl

Download URL pyfaup-1.9-py3-none-macosx_11_0_arm64.whl
Size 145.4 kB
Tags Python 3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
ae47480072046b81a9fc7e357f87fe8d1837124ee8382475d585ad25ee966fac
BLAKE2b-256 checksum
How to use checksums
6ba7064abf2be4376950408948598a2190cbda3f45b31160da5ff5a40097897c
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.9-py3-none-macosx_10_13_x86_64.whl

Download URL pyfaup-1.9-py3-none-macosx_10_13_x86_64.whl
Size 148.5 kB
Tags Python 3 macOS 10.13+ x86-64
SHA-256 checksum
How to use checksums
53b8b0d17989da02ecf0ca24dad811e74382a03b49da0fceaa5cb85c890fc400
BLAKE2b-256 checksum
How to use checksums
c2893fcda4fdb14c6fda320881b014def20a0c578c82073e732aa83f9b93114a
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.9

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 9 files in this release have been uploaded with provenance metadata.

Select from 9 files

Attestation for pyfaup-1.9.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