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-1.0.2.tar.gz (10.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-1.0.2-py3-none-any.whl (12.7 kB view details)

Uploaded Python 3

File details

Details for the file badges_gitlab-1.0.2.tar.gz.

File metadata

  • Download URL: badges_gitlab-1.0.2.tar.gz
  • Upload date:
  • Size: 10.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.5 CPython/3.8.10 Linux/5.15.154+

File hashes

Hashes for badges_gitlab-1.0.2.tar.gz
Algorithm Hash digest
SHA256 c4762c8a71fff7cea98d508625f7f0efc85b65db61422de4038254a0992adaa0
MD5 97bed8c70e751885dfb898fde933db23
BLAKE2b-256 852050c6ac903f2345e7d61b1cf80e24252de128143c7977e6aa37a16f9d485e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: badges_gitlab-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 12.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.5 CPython/3.8.10 Linux/5.15.154+

File hashes

Hashes for badges_gitlab-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 7ce6110c1426a10c02ebea1f20b6d6307f7f8fcc9e95c9cce4f7055122f62014
MD5 ff10328ef924b03ba8f817371f382087
BLAKE2b-256 9d0600697d1a032e0e0b0778f432a6815762443d22edcc4b00292de54136ea6a

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