Skip to main content

pyfav

pyfav is a simple Python library that helps you get a favicon for a supplied URL.

Favicons can be annoying to track down because they’re commonly located in a handful of different places. pyfav removes the annoyance by handling the details for you – you supply a URL and pyfav will give you the favicon.

Exchange a URL for a favicon on disk

The simplest way to get started is to use the download_favicon function,

from pyfav import download_favicon

favicon_saved_at = download_favicon('https://www.python.org/')

You should now see the favicon in your /tmp directory. If you want to control where the favicon gets written to disk,

from pyfav import download_favicon

mkdir /tmp/favicon-downloads

favicon_saved_at = download_favicon('https://www.python.org/', \
    file_prefix='python.org-', target_dir='/tmp/favicon-downloads')

Get the location

If you’d prefer to handle the writing piece, use the get_favicon_url function,

from pyfav import download_favicon

favicon_url = get_favicon_url('https://www.python.org/')

Install

The easiest to get pyfav is through PIP

pip install pyfav

License

pyfav is open source and freely avaiable under the MIT License

Metadata

Release files for pyfav 0.1

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

Source distribution (sdist)

Source distribution for pyfav 0.1
File Size Uploaded Provenance Actions
pyfav-0.1.tar.gz 4.4 kB Without provenance Details for pyfav-0.1.tar.gz

Release files / pyfav-0.1.tar.gz

Download URL pyfav-0.1.tar.gz
Size 4.4 kB
Tags Source
SHA-256 checksum
How to use checksums
223ffbff4d147e7dd8241e8201d73bce41be5a5d5d5de0f7967500528814c17b
BLAKE2b-256 checksum
How to use checksums
fea2a0281199dedf1912de75a9a631b5855ae6e86ad6f67030fad3c9e4e29804
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for pyfav 0.1

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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.

Release history Release notifications | RSS feed

This release

0.1 This release

1 release file No provenance

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