badge image class
Project description
Install
$ [sudo] pip install badge
Features
- md (by default), rst
- 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}/"
# .md, Markdown by default
>>> Travis(fullname="owner/repo")
'[![Travis](https://api.travis-ci.org/owner/repo.svg?branch=master)](https://travis-ci.org/owner/repo/)'
# .rst, reStructuredText
>>> Travis(fullname="owner/repo").rst
'.. image: : https://api.travis-ci.org/owner/repo.svg?branch=master
: target: https://travis-ci.org/owner/repo/'
visible
- show/hide badge
>>> Travis(fullname="owner/repo",visible=False)
''
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-0.0.1.tar.gz
(1.7 kB
view hashes)