cb-badges
cb-badges aims at creating meaningful & stylish badges for your project's README file - batteries included.
This project is a Python port of @lhinderberger's dot-slash-badges, which is written in Go.
Getting started
This will install cb-badges along its dependencies inside a virtual environment, ready for action:
# Set up & activate virtualenv
virtualenv -p python3 venv && source venv/bin/activate
# Install dependencies
python -m pip install --editable .
Usage
The following commands are available:
$ badges --help
Usage: badges [OPTIONS] OUTPUT
Writes SVG file to OUTPUT
Options:
-s, --style TEXT Set style (name or directory).
-t, --theme TEXT Set theme (name or file path).
-p, --provider TEXT Set provider (Codeberg, GitHub, ..).
-m, --minify Whether to minify SVG output.
-v, --verbose Enable verbose mode.
--version Show the version and exit.
--help Show this message and exit.
Note: All CLI options not listed above are passed to the template as-is - so if you wanted to change the font size to 18, passing --font_size 18 does the trick, same goes for any other option including text properties like --text_left and --text_right (required by default style).
Roadmap
- Add tests
- Support fetching data on repositories like ..
- .. stars, downloads, etc (GitHub / Codeberg)
- .. build status (Drone / Woodpecker CI)
- .. you-name-it
Happy coding!
Metadata
Release files for cb-badges 0.3.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| cb_badges-0.3.1.tar.gz | 3.4 MB | Without provenance | Details for cb_badges-0.3.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| cb_badges-0.3.1-py3-none-any.whl | Python 3 | none | any | Details for cb_badges-0.3.1-py3-none-any.whl |
Total release size: 6.7 MB
Release files / cb_badges-0.3.1.tar.gz
| Download URL | cb_badges-0.3.1.tar.gz |
|---|---|
| Size | 3.4 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b0c15b59ebd4e4ef22d4f192f71618eaee0fa9b63bc14ce0d20637d339a7cad8
|
|
BLAKE2b-256 checksum How to use checksums |
667dc161025de9c974f7f99809813391a794cc16a1944d0ce9464dbc35f4ea22
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.0.1 pkginfo/1.4.2 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.7
|
Release files / cb_badges-0.3.1-py3-none-any.whl
| Download URL | cb_badges-0.3.1-py3-none-any.whl |
|---|---|
| Size | 3.4 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ef0d63e1674d804283af761674674961cd31da8f8651ee1ed23491f56da7296d
|
|
BLAKE2b-256 checksum How to use checksums |
8f104d43e785166520c5d094a3bada57fb3bd160260d11e68107a146a7c97cff
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.0.1 pkginfo/1.4.2 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.7
|
Security for cb-badges 0.3.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.