Skip to main content

shields.io badges

Project description

Install

$ [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

Classes

shie.Badge

shields.io custom Badge

attr default value
color green
status None
subject None
shields.npm.V

npm Version badge

shields.pypi.L

pypi License badge

shields.pypi.Pyversions

pypi pyversions badge

shields.pypi.V

pypi Version badge

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

readme-md - README.md generator

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-2018.11.20.tar.gz (2.5 kB view hashes)

Uploaded Source

Built Distribution

shields-2018.11.20-py2.py3-none-any.whl (7.8 kB view hashes)

Uploaded Python 2 Python 3

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