Skip to main content

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)

Source distribution for trustlist-badge 0.1.0
File Size Uploaded
trustlist_badge-0.1.0.tar.gz 4.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for trustlist-badge 0.1.0
File Interpreter ABI Platform
trustlist_badge-0.1.0-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

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