Skip to main content

Generate badges for Gitlab Projects in Public and Private Repositories

Project description

Badges Gitlab

Pypi Version Status Python Version License Coverage Pipeline Documentation Status

This project was created to generate badges for Gitlab in CI jobs, mainly for private repositories where other common methods are not available (direct API Calls, shields.io, etc...).

By default, Gitlab supports only two types of badges: pipeline and test coverage.

These badges are better detailed at: Gitlab Project Badges.

Installation

You can install this package from pypi using pip.

$ pip install badges-gitlab

General Usage

usage: badges-gitlab [-h] [-p PATH] [-t TOKEN] [--junit-xml FILE_PATH] [-s LABEL MESSAGE COLOR] 
[-lb URLS [URLS ...]] [-V]

Generate Gitlab Badges using JSON files and API requests. Program version v0.0.0.

optional arguments:
  -h, --help            show this help message and exit
  -p TEXT, --path TEXT  path where json and badges files will be generated/located (default: ./public/badges/)
  -t TEXT, --token TEXT specify the private-token in command line (default: ${PRIVATE_TOKEN})
  --junit-xml TEXT      specifies the path of a JUnit XML file for parsing the test results
  -s LABEL MESSAGE COLOR, --static-badges LABEL MESSAGE COLOR
                        specify static badges in command line using lists
 -lb URLS [URLS ...], --link-badges URLS [URLS ...]
                        specify shields.io urls to download badges
  -V, --version         returns the package version

Author

Felipe Pinheiro Silva

Contributors

Benjamin Maréchal (irmo322)

Further Documentation

Slowly moving documentation to ReadTheDocs.

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

badges-gitlab-0.8.4.tar.gz (86.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

badges_gitlab-0.8.4-py3-none-any.whl (12.1 kB view details)

Uploaded Python 3

File details

Details for the file badges-gitlab-0.8.4.tar.gz.

File metadata

  • Download URL: badges-gitlab-0.8.4.tar.gz
  • Upload date:
  • Size: 86.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/35.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.64.0 importlib-metadata/4.11.4 keyring/23.5.1 rfc3986/2.0.0 colorama/0.4.4 CPython/3.8.10

File hashes

Hashes for badges-gitlab-0.8.4.tar.gz
Algorithm Hash digest
SHA256 c05cc5b3b2cc8d60f54e37787532c7ad8f9c6f81ae9098cfd5a8875267eb80af
MD5 12bca7b06b84c1be643afa78426230f4
BLAKE2b-256 b8f6a65196498ea3a5dd77b5d396ecd16a07c83f86d12b42edc8f67e49fc48c9

See more details on using hashes here.

File details

Details for the file badges_gitlab-0.8.4-py3-none-any.whl.

File metadata

  • Download URL: badges_gitlab-0.8.4-py3-none-any.whl
  • Upload date:
  • Size: 12.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/35.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.64.0 importlib-metadata/4.11.4 keyring/23.5.1 rfc3986/2.0.0 colorama/0.4.4 CPython/3.8.10

File hashes

Hashes for badges_gitlab-0.8.4-py3-none-any.whl
Algorithm Hash digest
SHA256 a70eacd2ed6d63796dd1163757ec276f9a0b537fdf21d4ca720e7a4d4613e29a
MD5 aa16c7e6581a400441455bcde6aed911
BLAKE2b-256 2a49e7afed3a59b3c915555dc54bb46d7fdd18c42af15d2586bf15f6e16654e0

See more details on using hashes here.

Supported by

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