Skip to main content

shields.io badges

Project description

Installation

$ [sudo] pip install shields

Features

  • autoformat strings
  • shields.io parameters: style, for-the-badge, social), label, logo, logoWidth, colorA, colorB, maxAge, longCache
  • shields.io styles: flat (default), plastic, flat-square, for-the-badge, social

Examples

static badge

>>> shields.Badge(subject="subject", status="status", color="blue", maxAge=3600)
'[![](https://img.shields.io/badge/subject-status-blue.svg)]()'
pypi badges

>>> shields.pypi.V("django")
'[![](https://img.shields.io/pypi/v/django.svg)](https://pypi.org/pypi/name/)'

>>> shields.pypi.Pyversions("django")
'[![](https://img.shields.io/pypi/pyversions/django.svg)](https://pypi.org/pypi/name/)'

>>> shields.pypi.L("django")
'[![](https://img.shields.io/pypi/l/django.svg)](https://pypi.org/pypi/name/)'
subclass
>>> class New(shields.Abstract):
    path = "npm/v/{name}.svg"
    link = "https://www.npmjs.com/package/{name}"

>>> Npm(name="jquery")
'[![](https://img.shields.io/npm/v/jquery.svg)](https://www.npmjs.com/package/jquery)'

Links

readme42.com

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

shields-2020.12.3.tar.gz (2.6 kB view details)

Uploaded Source

File details

Details for the file shields-2020.12.3.tar.gz.

File metadata

  • Download URL: shields-2020.12.3.tar.gz
  • Upload date:
  • Size: 2.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.0 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.6

File hashes

Hashes for shields-2020.12.3.tar.gz
Algorithm Hash digest
SHA256 ce88c5cf81263e335179dd1cc8f46b9e1ad44229809e3fc82cfa845f9f92b1e1
MD5 96b8a282f5690cf234e8387a12a36aba
BLAKE2b-256 317a7803786888b69a57907c4ecb5023eecbf93c8d19455259e49ed3a02319a4

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page