GitLab Manager
Overview https://pypi.org/project/gitlab-manager/
gitlab-manager is a Python script that provides a command-line interface for managing GitLab variables. It includes two subcommands: create_variable and create_variable_from_file. These subcommands allow users to create variables directly or from an environment file, simplifying the process of managing project variables on GitLab.
Usage
Subcommands
- create_variable This subcommand creates a GitLab variable with the specified parameters.
python gitlab_manager.py create_variable --api_url --project_id --private_token --key --value --type --masked --protected --environment_scope
- --api_url: GitLab API URL.
- --project_id: Project ID where the variable will be created.
- --private_token: Private Token for authentication.
- --key: Key for the variable.
- --value: Value for the variable.
- --type: Variable Type (default: 'env_var').
- --masked: Flag to indicate if the variable should be masked.
- --protected: Flag to indicate if the variable should be protected.
- --environment_scope: Environment Scope for the variable (default: '*').
Example
gitlab_manager create_variable_from_file --api_url https://gitlab.example.com --project_id 123 --private_token ABC123 --key PathToFile --masked --protected
- create_variable_from_file This subcommand creates GitLab variables from an environment file.
python gitlab_manager.py create_variable_from_file --api_url --project_id --private_token --file
- --api_url: GitLab API URL.
- --project_id: Project ID where the variables will be created.
- --private_token: Private Token for authentication.
- --file: Path to the environment file containing variables.
- --type: Variable Type (default: 'env_var').
- --masked: Flag to indicate if the variables should be masked.
- --protected: Flag to indicate if the variables should be protected.
- --environment_scope: Environment Scope for the variables (default: '*').
Example
gitlab_manager create_variable_from_file --api_url https://gitlab.example.com --project_id 123 --private_token ABC123 --key PathToFile --masked --protected
- get_variables This subcommand get GitLab variables from specific scope.
python gitlab_manager.py get_variables --api_url --project_id --private_token --environment_scope
- --api_url: GitLab API URL.
- --project_id: Project ID where the variables will be created.
- --private_token: Private Token for authentication.
- --environment_scope: Environment Scope for the variables (default: '*').
Example
gitlab_manager get_variables --api_url https://gitlab.example.com --project_id 123 --private_token ABC123 ---environment_scope prod
Metadata
Release files for gitlab-manager 0.17
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| gitlab_manager-0.17.tar.gz | 4.4 kB | Without provenance | Details for gitlab_manager-0.17.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| gitlab_manager-0.17-py3-none-any.whl | Python 3 | none | any | Details for gitlab_manager-0.17-py3-none-any.whl |
Total release size: 9.4 kB
Release files / gitlab_manager-0.17.tar.gz
| Download URL | gitlab_manager-0.17.tar.gz |
|---|---|
| Size | 4.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
dca22b5aec27c3b498341ae9cb0f1ac39cc441c0b965f13fd5ff356444623c2e
|
|
BLAKE2b-256 checksum How to use checksums |
478e33652fdc2b348ffca1165e9f54b39b5b0160f67936fae17934ba85254bf2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.6
|
Release files / gitlab_manager-0.17-py3-none-any.whl
| Download URL | gitlab_manager-0.17-py3-none-any.whl |
|---|---|
| Size | 5.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
fbd346201551866e6f5c65228545539ebf260249ef7b076a1925940ad177f769
|
|
BLAKE2b-256 checksum How to use checksums |
47f0e3fdce780f6c0672b4ae66f822ea38213e6d25e8520a307e77bc425cbdf0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.6
|
Security for gitlab-manager 0.17
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.