-----
pyfav2 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. pyfav2 removes the annoyance by
handling the details for you – you supply a URL and pyfav2 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 pyfav2 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 pyfav2 import download_favicon
mkdir /tmp/favicon-downloads
favicon_saved_at = download_favicon('https://www.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 pyfav2 import get_favicon_url
favicon_url = get_favicon_url('https://www.python.org/')
Install
~~~~~~~
The easiest to get pyfav2 is through PIP
::
pip install pyfav2
License
~~~~~~~
pyfav2 is open source and freely avaiable under the `MIT License`_
.. _favicon: http://en.wikipedia.org/wiki/Favicon
.. _MIT License: http://opensource.org/licenses/MIT
Metadata
Release files for pyfav2 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pyfav2-0.1.1.zip | 8.0 kB | Without provenance | Details for pyfav2-0.1.1.zip |
Release files / pyfav2-0.1.1.zip
| Download URL | pyfav2-0.1.1.zip |
|---|---|
| Size | 8.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b4bd03f70488361003edfbfc64138e481524789871fc6f3173c2cb56ca2701e5
|
|
BLAKE2b-256 checksum How to use checksums |
f087586eb1bae847554f63769737ebd7c745d237fd92fad2557c6053d4d6f616
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for pyfav2 0.1.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.