trustlist-badge
Show your TrustList rank badge on your website from Python. If your business is ranked on TrustList, this package builds the badge snippet: the badge image, linked to the ranking it cites, with a small Verify link. Print it in your page's HTML so every visitor and search engine sees the link.
pip install trustlist-badge
from trustlist_badge import badge_html
html = badge_html(
type="company", # or "product"
slug="your-company", # from your TrustList address
page="/best/web-design-agency/london", # the ranking's path
label="TrustList: Top Web Design Agencies in London",
)
In Django or Jinja templates, mark it safe (mark_safe(html) or {{ html|safe }}): the function
escapes every value itself. badge_url, ranking_url and verify_url return the separate links;
invalid input raises BadgeError.
The badge is built by TrustList from the published edition; it updates itself with each edition and reads "Not ranked" if the rank it cites is gone. Same behaviour in every language: see the specification. MIT licence.
Metadata
Release files for trustlist-badge 0.1.0
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 |
|---|---|---|---|---|
| trustlist_badge-0.1.0.tar.gz | 4.4 kB | Without provenance | Details for trustlist_badge-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| trustlist_badge-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for trustlist_badge-0.1.0-py3-none-any.whl |
Total release size: 8.4 kB
Release files / trustlist_badge-0.1.0.tar.gz
| Download URL | trustlist_badge-0.1.0.tar.gz |
|---|---|
| Size | 4.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cc31ecd218eac1232b51462e9d9a4e827bd956418ef49ac7833a416bad49758d
|
|
BLAKE2b-256 checksum How to use checksums |
e87ec8de1d1012c1268d04dd93b15c34632365b9c6b86c22f70e84db04e2ecd5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.8
|
Release files / trustlist_badge-0.1.0-py3-none-any.whl
| Download URL | trustlist_badge-0.1.0-py3-none-any.whl |
|---|---|
| Size | 4.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4074d00b5220f322d33bba6cfd357e55b7b26d857b8c9441fcfa91b29bf892e0
|
|
BLAKE2b-256 checksum How to use checksums |
be87dcf8faf559ed49a72b3946480221a9c8ba85c29ded886667c499ffbd9435
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.8
|
Security for trustlist-badge 0.1.0
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.