Skip to main content

No project description provided

Project description

GitLab Manager

Overview

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

  1. 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.py create_variable_from_file --api_url https://gitlab.example.com/api/v4 --project_id 123 --private_token ABC123 --key PathToFile --masked --protected
  1. 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 --type --masked --protected --environment_scope

  • --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.py create_variable_from_file --api_url https://gitlab.example.com/api/v4 --project_id 123 --private_token ABC123 --key PathToFile --masked --protected

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

gitlab-manager-0.14.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

gitlab_manager-0.14-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

Details for the file gitlab-manager-0.14.tar.gz.

File metadata

  • Download URL: gitlab-manager-0.14.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.12.0

File hashes

Hashes for gitlab-manager-0.14.tar.gz
Algorithm Hash digest
SHA256 ae1b0c5289a851ff5cb97de77d1ccf163c74e573a65d1eec3d08ebc04d07f4c3
MD5 c8e8d249fb072729e92a9cfe35135150
BLAKE2b-256 ac9519f44a620ac515749ddd0cfe4f9fc54c17897517180b1f8ca5b692d28366

See more details on using hashes here.

File details

Details for the file gitlab_manager-0.14-py3-none-any.whl.

File metadata

File hashes

Hashes for gitlab_manager-0.14-py3-none-any.whl
Algorithm Hash digest
SHA256 7980ece79ee2b4b9fe204760b9d7e4b0e2aaadb92ab2c982e35f6438aa105230
MD5 b60f62264cad96e819995703a6c62d0c
BLAKE2b-256 aa8ea775a51f2a1cbdbf1369fbd29d5035f6425e0d5370147f194d5059a5fb5f

See more details on using hashes here.

Supported by

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