Skip to main content

No project description provided

Project description

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!

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cb_badges-0.3.0.tar.gz (21.7 kB view details)

Uploaded Source

Built Distribution

cb_badges-0.3.0-py3-none-any.whl (22.3 kB view details)

Uploaded Python 3

File details

Details for the file cb_badges-0.3.0.tar.gz.

File metadata

  • Download URL: cb_badges-0.3.0.tar.gz
  • Upload date:
  • Size: 21.7 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for cb_badges-0.3.0.tar.gz
Algorithm Hash digest
SHA256 ea7d71337b7d170fcb26039eb7ab5ccbbd8e92e7ed04f692b68407546f457089
MD5 048403471e46edd8611feae85399aff2
BLAKE2b-256 1c15e4d28b98546d09c7cb44f13c5b3011d0aac498a64916d35f165909120e6c

See more details on using hashes here.

File details

Details for the file cb_badges-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: cb_badges-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 22.3 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for cb_badges-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2de59f4e37afd4817a6302237b3a13e877be6859705363ac7cad073e9c928f8c
MD5 a1aee8ffcef1c6d1aa8f6492a001b6ee
BLAKE2b-256 6b25f764a6647a86569834781a4319cab799fd005433808c67c0c3681ce9ebf7

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page