Created temporary directory: /tmp/pip-ephem-wheel-cache-4har6_qr Created temporary directory: /tmp/pip-wheel-_7fz3ccj Looking in indexes: https://pypi.python.org/simple Collecting pybadges==0.0.6 1 location(s) to search for versions of pybadges: * https://pypi.python.org/simple/pybadges/ Getting page https://pypi.python.org/simple/pybadges/ Analyzing links from page https://pypi.org/simple/pybadges/ Found link https://files.pythonhosted.org/packages/66/de/f0370e6cec53efa882049a89e215f0ddc795805490f698001e40241aab68/pybadges-0.0.1.tar.gz#sha256=6d094d53639ed9259925c6ced6e375006ffe05a490effb964abebe2fc4c9b8a3 (from https://pypi.org/simple/pybadges/), version: 0.0.1 Found link https://files.pythonhosted.org/packages/ae/61/9f57e34fd97ddbfe0fb322f76af8637b62fa20b91a5754e17a5c1aa59885/pybadges-0.0.2.tar.gz#sha256=e1674171184cd42368b0d4c7e6bbd8b7808214bbb4a995b6ffa4daa3da7dfc95 (from https://pypi.org/simple/pybadges/), version: 0.0.2 Found link https://files.pythonhosted.org/packages/92/e4/34c560501510151a31bb51cc4dbd33c589acff9ecc5e6cce7843549eb46d/pybadges-0.0.3.tar.gz#sha256=0a77c9b4dd219fce9adc49c27ba3038c318bcbf97b214cfb67fbad70a7d82d71 (from https://pypi.org/simple/pybadges/), version: 0.0.3 Found link https://files.pythonhosted.org/packages/ed/46/920a7961a242db27f44c3d95ef906ada0ab26bcb35b552892a7c36bb37cd/pybadges-0.0.4.tar.gz#sha256=37a96ed0305fdd571ae608f20547ad802be7cfabe12744e8ec3601baddf03f30 (from https://pypi.org/simple/pybadges/), version: 0.0.4 Found link https://files.pythonhosted.org/packages/a5/05/26a6292b10b32466853c2d58eeb4d59afe9472a90babc141f4101bea1c81/pybadges-0.0.5.tar.gz#sha256=da63df01bf248fa5fc9dc7076efdc1c2d5f8e1795ee1f35f897dedfa5f8f5c2c (from https://pypi.org/simple/pybadges/), version: 0.0.5 Found link https://files.pythonhosted.org/packages/7b/17/686df8162424eaa8b0a19d37470eb5a2d470523093747650ab24791d5412/pybadges-0.0.6.tar.gz#sha256=dda0846bd36ecd9e9655eb035037d4a34cbdc951c8717e579c0f5e1fc586804f (from https://pypi.org/simple/pybadges/), version: 0.0.6 Using version 0.0.6 (newest of versions: 0.0.6) Created temporary directory: /tmp/pip-unpack-jabnep8c Downloading https://files.pythonhosted.org/packages/7b/17/686df8162424eaa8b0a19d37470eb5a2d470523093747650ab24791d5412/pybadges-0.0.6.tar.gz Downloading from URL https://files.pythonhosted.org/packages/7b/17/686df8162424eaa8b0a19d37470eb5a2d470523093747650ab24791d5412/pybadges-0.0.6.tar.gz#sha256=dda0846bd36ecd9e9655eb035037d4a34cbdc951c8717e579c0f5e1fc586804f (from https://pypi.org/simple/pybadges/) Running setup.py (path:/tmp/pip-wheel-_7fz3ccj/pybadges/setup.py) egg_info for package pybadges Running command python setup.py egg_info # pybadges pybadges is a Python library and command line tools that allows you to create Git-hub styles badges as SVG images. For example: ![pip installation](https://github.com/google/pybadges/raw/master/tests/golden-images/pip.svg?sanitize=true) ![pip installation](https://github.com/google/pybadges/raw/master/tests/golden-images/license.svg?sanitize=true) ![pip installation](https://github.com/google/pybadges/raw/master/tests/golden-images/build-passing.svg?sanitize=true) The aesthetics of the generated badges matches the visual design of Shields badges [specification](https://github.com/badges/shields/blob/master/spec/SPECIFICATION.md). The implementation of the library was heavily influenced by [Shields.io](https://github.com/badges/shields) and the JavaScript [gh-badges](https://github.com/badges/shields#using-the-badge-library) library. ## Getting Started These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system. ### Installing pybadges can be installed using [pip](https://pypi.org/project/pip/): ```sh pip install pybadges ``` To test that installation was successful, try: ```sh python -m pybadges --left-text=build --right-text=failure --right-color=#c00 --browser ``` You will see a badge like this in your browser or other image viewer: ![pip installation](https://github.com/google/pybadges/raw/master/tests/golden-images/build-failure.svg?sanitize=true) ## Usage pybadges can be used both from the command line and as a Python library. The command line interface is a great way to experiment with the API before writing Python code. ### Command line usage Complete documentation of pybadges command arguments can be found using the help argument: ```sh python -m pybadges --help ``` But the following usage demonstrates every interesting option: ```sh python -m pybadges \ --left-text=complete \ --right-text=example \ --left-color=green \ --right-color=#fb3 \ --left-link=http://www.complete.com/ \ --right-link=http://www.example.com \ --logo='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAACCAIAAAD91JpzAAAAD0lEQVQI12P4zwAD/xkYAA/+Af8iHnLUAAAAAElFTkSuQmCC' \ --browser ``` ![pip installation](https://github.com/google/pybadges/raw/master/tests/golden-images/complete.svg?sanitize=true) Note that the `--logo` option can include a regular URL: ```sh python -m pybadges \ --left-text="python" \ --right-text="3.2, 3.3, 3.4, 3.5, 3.6" \ --whole-link="https://www.python.org/" \ --browser \ --logo='https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/python.svg' ``` ![pip installation](https://github.com/google/pybadges/raw/master/tests/golden-images/python.svg?sanitize=true) ### Library usage pybadges is primarily meant to be used as a Python library. ```python from pybadges import badge s = badge(left_text='coverage', right_text='23%', right_color='red') # s is a string that contains the badge data as an svg image. print(s[:40]) # =>