URLicon - v0.2.6
URLicon helps you to discover an possible icon from a URL.
We check for the metatag icons, favicons and, if we don't find, we check the
first image in the URL html code. Finally, if nothing is found, we use the
https://ui-avatars.com/api/ to bring you at least
some avatar-like icon.
How to install and use
Install with uv or pip
uv add urlicon
# or
pip urlicon
Usage:
from urlicon import urlicon
url = "https://this-is.your-url.com/some-path"
icon_url = urlicon.get_url_icon(url)
print("icon:", icon_url)
# icon: "https://this-is.your-url.com/icon.jpeg"
Caching
URLicon use the unforgettable "cache" to avoid unecessary URL requests.
It uses a temp dir for each
execution. But you can define a your own directory and use the cache as much as
you want setting SIMPLE_CACHE_ROOT_DIR env var.
SIMPLE_CACHE_ROOT_DIR = os.getenv("SIMPLE_CACHE_ROOT_DIR", None)
cache = unforgettable(cache_folder=SIMPLE_CACHE_ROOT_DIR)
And you can clean the cache with:
urlicon.unforgettable.clean()
See Also
License
This package is distributed under the MIT license.
Metadata
Release files for urlicon 0.2.6
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 |
|---|---|---|---|---|
| urlicon-0.2.6.tar.gz | 6.9 kB | With provenance | Details for urlicon-0.2.6.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| urlicon-0.2.6-py3-none-any.whl | Python 3 | none | any | Details for urlicon-0.2.6-py3-none-any.whl |
Total release size: 11.0 kB
Release files / urlicon-0.2.6.tar.gz
| Download URL | urlicon-0.2.6.tar.gz |
|---|---|
| Size | 6.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
164c2fad58e031a50579b2f7fa8a04871da981e2db81e84bfa8f0f43c9c70335
|
|
BLAKE2b-256 checksum How to use checksums |
1a8ea901ef0f6afd9cba707efaadc0b515a06ba0c55bd94c09f37d98f5dffcff
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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 Jun 7, 2026.
Transparency logRelease files / urlicon-0.2.6-py3-none-any.whl
| Download URL | urlicon-0.2.6-py3-none-any.whl |
|---|---|
| Size | 4.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ee2a51485adfd0c2784321148c0429d689dd462d34047688f708935340cebc83
|
|
BLAKE2b-256 checksum How to use checksums |
9f9361cd810ecbef9841303199c24592a3cd686ae11116e15712fbe91f2e5829
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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 Jun 7, 2026.
Transparency logSecurity for urlicon 0.2.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
Both files in this release have been uploaded with provenance metadata.
Attestation for urlicon-0.2.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 Jun 7, 2026.
Transparency logA 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.