Generate badges for Gitlab Projects in Public and Private Repositories
Project description
Badges Gitlab
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
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
Built Distribution
File details
Details for the file badges_gitlab-1.0.1.tar.gz
.
File metadata
- Download URL: badges_gitlab-1.0.1.tar.gz
- Upload date:
- Size: 10.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.8.10 Linux/5.4.109+
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bcb1c785429cc88676be2c392db2d4551fa9dac72d5e9e68fe68074bdc37380b |
|
MD5 | 0baa4514c2f0cf819f3f7d6427eae365 |
|
BLAKE2b-256 | 9d3f82e8013a9b35afee2f24e9402b05325a020a93ab6878989adcdd2da0db4c |
File details
Details for the file badges_gitlab-1.0.1-py3-none-any.whl
.
File metadata
- Download URL: badges_gitlab-1.0.1-py3-none-any.whl
- Upload date:
- Size: 12.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.8.10 Linux/5.4.109+
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ee875902ba915f1296d113272c79c5752f51cd1085b4ff2ef05d58de516b838f |
|
MD5 | 6385161e715bbed801873023a62cc378 |
|
BLAKE2b-256 | 1905fb17f8f02a16caa9a4a859df993e70a4b3e2efe8af5cd308abe938251e03 |