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
>>> 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
Release history Release notifications | RSS feed
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)
Built Distribution
Close
Hashes for shields-2018.11.20-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9e1aa0f7df30b76c77bf3811d62c151d3c357ece1f30e640049fd187a24fdbbd |
|
MD5 | 9a7f781ea9e613ded4a66c5ab7b83440 |
|
BLAKE2b-256 | fc64727b7afdd9f3fc555685d6b30c8db5693eed35950a39f3c853873079e70c |