Commandline Interface to create badges
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
badger
examples
tests
.gitignore
.pylintrc
.travis.yml
DEVELOPMENT.md
DejaVu Fonts License.txt
LICENSE
MANIFEST.in
Pipfile
Pipfile.lock
README.rst
setup.cfg
setup.py
todo.md

README.rst

badger

version coverage

Commandline Interface to create svg badges.

Install

pip install badger

Usage (Commandline)

Simplest use case of static label and value:

badger version v0.1.2

Percentage mode, with color picked relative to where in the 0-100 range the value is.

badger -p coverage 71.29%

Usage (Package)

from badger import Badge, PercentageBadge

badge = Badge("version", "v0.1.2")
badge.save("examples/version.svg")

percentage_badge = PercentageBadge("coverage", 71.29)
badge.save("examples/coverage.svg")

Disclaimer

Code originally heavily copied from https://github.com/dbrgn/coverage-badge Badge design originally from https://github.com/badges/shields