badge generator
Project description
Install
$ [sudo] pip install badge
Features
- md (default), rst, html
- autoformat strings
- minimalistic design
Classes
badge.Badge
badge generator class
attr | default value |
---|---|
branch |
master |
image |
'' |
link |
'' |
markup |
md |
title |
'' |
visible |
True |
@property | description |
---|---|
html |
render to .html |
md |
render as .md |
rst |
render as .rst |
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/'
readme-md - README.md generator
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-2018.11.21.tar.gz
(2.0 kB
view hashes)
Built Distribution
Close
Hashes for badge-2018.11.21-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9b6d44accd03126ccb67143346c735cf09097f5c77ac8c7ea5949fce08d9d627 |
|
MD5 | 6e8177350d16b1f221aefcd9c9f1afda |
|
BLAKE2b-256 | 50afe1c7233ff1b82a0aab460601812b9f275453919bb6055af317e383946d48 |