badge generator
Project description
Installation
$ [sudo] pip install badge
Features
- md (default), rst, html
- autoformat strings
- minimalistic design
Examples
>>> class Travis(badge.Badge):
title = "Travis"
image = "https://api.travis-ci.org/{fullname}.svg?branch={branch}"
link = "https://travis-ci.org/{fullname}/"
>>> Travis(fullname="owner/repo") # .md, Markdown by default
'[![Travis](https://api.travis-ci.org/owner/repo.svg?branch=master)](https://travis-ci.org/owner/repo/)'
>>> Travis(fullname="owner/repo").rst # .rst, reStructuredText
'.. image: : https://api.travis-ci.org/owner/repo.svg?branch=master
: target: https://travis-ci.org/owner/repo/'
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
badge-2020.12.3.tar.gz
(2.0 kB
view hashes)