Add Badges to your Sublime Text Plugins showing your Package Control Statistics
Python
Switch branches/tags
Nothing to show
Permalink
Failed to load latest commit information.
.gitignore Heroku configurations Mar 19, 2015
Procfile Heroku configurations Mar 19, 2015
README.md Add styles support and update README Mar 20, 2015
app.py Added styles support Mar 20, 2015
requirements.txt Heroku configurations Mar 19, 2015

README.md

##Package Control Badges

This is a Flask app that allows you to add badges to your Sublime Text Plugins showing your Plugin Downloads. This is very easy to use using the API and the API is hosted on Heroku.

###Demo

The source for the above is:

<a href="https://packagecontrol.io/packages/Terminal"><img src="https://packagecontrol.herokuapp.com/downloads/Terminal.svg"></a>

###API Endpoints

The base API endpoints are (currently only for downloads):

https://packagecontrol.herokuapp.com/downloads/[Package name].[format]

The package name needs to be quoted, like Theme - Soda becomes Theme%20-%20Soda

Formats currently supported are:

  • PNG
  • SVG
  • JPEG
  • GIF
  • TIFF

####Colors

You can also change the color of the badge by adding a color parameter. The value of this URL parameter is valid CSS hexadecimal color or a normal color name like 17024F (without the #) or red

Example:

Source:

<a href="https://packagecontrol.io/packages/HTML%20Minifier"><img src="https://packagecontrol.herokuapp.com/downloads/HTML%20Minifier.svg?color=EF9F9F"></a>

####Styles

There are 3 main styles available to choose from (as given in shields.io):

  1. Flat (default)
  2. Plastic (legacy)
  3. Flat-Square

You can change the styles by adding a style parameter after the URL.

Example:

Source:

<a href="https://packagecontrol.io/packages/HTML%20Minifier"><img src="https://packagecontrol.herokuapp.com/downloads/HTML%20Minifier.svg?color=red&style=flat-square"></a>

The value of the style paramter will be either plastic, flat or flat-square

###To-Do

  1. Add more features (that is, endpoints)
  2. Add alternate hosting (on OpenShift) to compensate Heroku Free tier limits

###About

Created By Pradipta (geekpradd). Copyright 2015. MIT Licensed.