badge generator
Project description
Installation
$ [sudo] pip install badge
Features
- md (default), rst, html
- autoformat strings
- minimalistic design
Classes
class | __doc__ |
---|---|
badge.Badge |
badge generator class |
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-2019.3.22.tar.gz
(2.0 kB
view hashes)
Built Distribution
Close
Hashes for badge-2019.3.22-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | eef7cafb95f67d6f3f05fa3adbc3ac4cfa74b74d7deb5a8ca5353a9ae45d70df |
|
MD5 | f8c1ee967e8cff4ca06ead800c1ca75e |
|
BLAKE2b-256 | 133757e55b75e1fcf2a14358947bc69a50b250ebbd3644b6a76e6c9d6a979274 |