Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/tethik/badger

Commandline Interface to create badges
https://github.com/tethik/badger

Last synced: 10 days ago
JSON representation

Commandline Interface to create badges

Awesome Lists containing this project

README

        

badger
======
|version| |coverage|

Commandline Interface to create svg badges.

Install
-------

.. code:: bash

pip install badger

Usage (Commandline)
-------------------

Simplest use case of static label and value:

.. code:: bash

badger version v0.1.2

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

.. code:: bash

badger -p coverage 71.29%

Usage (Package)
---------------

.. code:: python

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

.. |version| image:: examples/version.svg
.. |coverage| image:: examples/coverage.svg