A tool to parse CI/CD variables from Gitlab API
Project description
GitVars
Use the Gitlab API to extract CI/CD variables and output them in a format useable for running projects locally.
Installation
pip install mf-gitvars --upgrade
Setup
Create an API key on Gitlab here and grant it read_api, read_repository permissions
Create a local configuration file and replace your token
cat ~/.python-gitlab.cfg
[global]
default = momentfeed
ssl_verify = true
timeout = 5
api_version = 4
[momentfeed]
url = https://gitlab.com
private_token = [YOUR API TOKEN]
Usage
Find the gitlab project id on the project page here:
And then run with
$ mf-gitvars [project-id]
You will get an output for each environment and one for the global environment.
There is a special string for IntelliJ and you can paste that directly into your run configuration like so:
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mf-gitvars-1.1.7.tar.gz.
File metadata
- Download URL: mf-gitvars-1.1.7.tar.gz
- Upload date:
- Size: 3.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.8.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1127146ab7d2d280e6b59aecd1aac798e0ca63ae68fad2583e9b9c41e8a6ff12
|
|
| MD5 |
5d4940b4cfe0d8560b8337be1763b48b
|
|
| BLAKE2b-256 |
ed84ebb3b3fe14168bbe5574a341c8eb95723150f8eda0cdb76e2a76c3d238ea
|
File details
Details for the file mf_gitvars-1.1.7-py3-none-any.whl.
File metadata
- Download URL: mf_gitvars-1.1.7-py3-none-any.whl
- Upload date:
- Size: 4.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.8.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ee5e4033d83d57a1093c15290fad71e4ec195f50d996883f5ab9f0313bd60783
|
|
| MD5 |
888546aa24ac64053bb33f77ec93306f
|
|
| BLAKE2b-256 |
c7d9d9a9449167ba0b979bc173fa792100108b160e11f4c0b79710153059a62c
|