How To Add Pypi Pins/Badges To Github Readme Page!


If you are writing a python package or if you have already written one, it would be nice to show PyPi badges on Github Readme page.

PyPi Shields makes it super easy to add pins/shields to your GitHub repo, documentation or website. There are various shields like package downloads, version, egg and wheel distributions and license.

Lets say you want to add your version number to your github page. You can get badge at
https://pypip.in/version/<PYPI_PKG_NAME>/badge.svg 
If your readme is in markdown format you can add it as

[![Latest Version](https://pypip.in/version/<PYPI_PKG_NAME>/badge.svg)](https://pypi.python.org/pypi/<PYPI_PKG_NAME>/)

or if you are using srt format, you can use this

If your readme is in markdown format you can add it as

.. image:: https://pypip.in/version/<PYPI_PKG_NAME>/badge.svg


    :target: https://pypi.python.org/pypi/<PYPI_PKG_NAME>/

    :alt: Latest Version


In addition to version badges, you get the following badges.

Downloads: 
https://pypip.in/download/<PYPI_PKG_NAME>/badge.svg
Version: 
https://pypip.in/version/<PYPI_PKG_NAME>/badge.svg
Python Versions: 
https://pypip.in/py_versions/<PYPI_PKG_NAME>/badge.svg
Python Implementations: 
https://pypip.in/implementation/<PYPI_PKG_NAME>/badge.svg
Development Status: 
https://pypip.in/status/<PYPI_PKG_NAME>/badge.svg
Wheel: 
https://pypip.in/wheel/<PYPI_PKG_NAME>/badge.svg
Egg: 
https://pypip.in/egg/<PYPI_PKG_NAME>/badge.svg
Format: 
https://pypip.in/format/<PYPI_PKG_NAME>/badge.svg
License: 
https://pypip.in/license/<PYPI_PKG_NAME>/badge.svg

Here is a screenshot of PyPi badges added to one of my Python Package on Github.




I am Chillar Anand. I daydream a lot and write about the things that interest me here. You can read more about this blog here.

See all articles

Feeds

Edit this page