badges / pypipins

Badges for your site to display download totals, latest version using PyPI
http://pypip.in
MIT License
78 stars 45 forks source link

img.shields.io suport #13

Closed mikebryant closed 10 years ago

mikebryant commented 10 years ago

This switches to using img.shields.io as the backend. I've also refactored a lot of the request logic to remove duplicated code. And added support for the other image formats of img.shields.io, so pypip.in will now support svg badges.

kura commented 10 years ago

I will merge this as requested, but the pypip.in service itself will continue to use a local version of the img.shields.io Go codebase because of issues of downtime that I've experienced.

As for supporting SVG, I'm happy to merge that small code change in and allow it, but in the documentation for pypip.in I will continue to only mention PNGs as image type support is something that has never been requested and is something I feel will make the documentation harder to understand.

hayd commented 10 years ago

Does this mean that at some point we can use https://pypip.in/v/pipin/badge.svg at some time in the future? Would love to have that option.

I personally prefer the look of the svgs as discussed in this travis blogpost: http://blog.travis-ci.com/2014-03-20-build-status-badges-support-svg/

Note: can use http://shields.io/ directly: Current PyPi Version.

kura commented 10 years ago

Yes - https://pypip.in/#using-other-image-formats