Skip to main content
Copyright (c) 2017 Joakim Uddholm

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

Description: 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



Platform: UNKNOWN
Classifier: Development Status :: 3 - Alpha
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python

Metadata

Release files for badger 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for badger 0.1.2
File Size Uploaded
badger-0.1.2.tar.gz 387.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for badger 0.1.2
File Interpreter ABI Platform
badger-0.1.2-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 774.5 kB

Release files / badger-0.1.2.tar.gz

Download URL badger-0.1.2.tar.gz
Size 387.1 kB
Tags Source
SHA-256 checksum
How to use checksums
7b638174ba20c66b2a3ab11a6c9469a0a2746ba031d18beec2d6e157b938d1c9
BLAKE2b-256 checksum
How to use checksums
9ff8aaa69976d847038626a4c849ae161797fd13f0ac67b2fa2d796979ee8586
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / badger-0.1.2-py2.py3-none-any.whl

Download URL badger-0.1.2-py2.py3-none-any.whl
Size 387.4 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
ba2dab10bb9fd9de70cb9f1434f8654b590f6c11e23fdd6a89739ba424ac1525
BLAKE2b-256 checksum
How to use checksums
1e7f3008c7a4206c9680da015533df1aee79edcd04d440f91e0545664a42a70c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files

0.1.1

1 release file

0.1.0

1 release file

0.0.2

1 release file

0.0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page