# Badge Creator Python Script

**URL:** https://meta.discourse.org/t/badge-creator-python-script/40461
**Category:** Development
**Tags:** badges
**Created:** [March 2, 2016, 8:48pm UTC](https://meta.discourse.org/t/badge-creator-python-script/40461 "2016-03-02T20:48:15Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [March 2, 2016, 8:48pm UTC](https://meta.discourse.org/t/badge-creator-python-script/40461/1 "2016-03-02T20:48:15Z")

</div>

Continuing the discussion from [What cool badge queries have you come up with?](https://meta.discourse.org/t/what-cool-badge-queries-have-you-come-up-with/18978):

Here is a little Python script that creates sets of bronze, silver, gold badges when

- Bronze: post in a certain topic with a particular tag
- Silver: and liked by someone from a particular group
- Gold: and liked by some number more people

It takes badge title, icon, and tag on the command line. Other things are either passed on the command line or put in a config file. I hope to one day make it a plugin, but until then this will allow me to create sets badges much more quickly. Maybe it’ll help you too.

[https://github.com/pfaffman/discourseBadgeCreator](https://github.com/pfaffman/discourseBadgeCreator)
