Skip to main content

GitLab Artifact Puller / Downloader

Project description

glap

Python package PyPI

A GitLab Artifact Puller / Downloader

Quick Start

glap is a convenience tool to download artifacts of your frequently used GitLab repositories. Install via

pip install glap

Before you can use glap, you have to setup a configuration file named glap.toml. glap searches the file at the following locations (in this order):

  1. ./glap.toml
  2. ~/.config/glap/glap.toml (default location for configuration files on your OS; here for Linux)

It contains the following information:

  • Remotes with corresponding urls and access-tokens:
[remotes.myremote]
url = "https://gitlab.com"
private_token = "<my-private-token>"
oauth_token = "<my-oauth-token>"
job_token = "<my-job-token>"

Note that there must be exactly one authentication token specified.

  • Shortcuts for specific repositories. For example, the following shortcut points at the PDFs job of the main branch of https://gitlab.com/name/repo.
[shortcuts.myshortcut]
remote = "myremote"
namespace = "name"
repository = "repo"
ref = "main"
job = "PDFs"

Any configured shortcut will appear as a subcommand, i.e. you can use it as follows

glap myshortcut

Alternatively, you can specify the namespace and repository directly

glap download <namespace> <repository> -j <job> --ref <branch or tag>

If no remote is given, glap will use the first one in the configuration file. Otherwise, you can use

glap download <namespace> <repository> -r myremote

where myremote is the name of the remote in the configuration file.

Options

  • --job (-j) specifies the job's name.
  • --ref specifies the name of the branch or tag from where the job is located.
  • --output (-o) specifies the download location.
  • --temp (-t) downloads the artifact to a temporary location and opens the directory.
  • --silent (-s) enables silent mode (exceptions only).
  • --verbose (-v) enables verbose mode (e.g. print file list).

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

glap-0.3.1.tar.gz (5.1 kB view details)

Uploaded Source

Built Distribution

glap-0.3.1-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

File details

Details for the file glap-0.3.1.tar.gz.

File metadata

  • Download URL: glap-0.3.1.tar.gz
  • Upload date:
  • Size: 5.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.4 CPython/2.7.18 Linux/5.4.0-66-generic

File hashes

Hashes for glap-0.3.1.tar.gz
Algorithm Hash digest
SHA256 a8e99e5795deeaa1cbff1af169f8a6fcb1715f22a2beaf5d7cbb4a8a7100742d
MD5 cbd2d4ba83531bc74258f32b9497539e
BLAKE2b-256 80e165224ef9fb0cbdfd013dd5664417a527c43c1c080b755c5ccdbb3a641df1

See more details on using hashes here.

File details

Details for the file glap-0.3.1-py3-none-any.whl.

File metadata

  • Download URL: glap-0.3.1-py3-none-any.whl
  • Upload date:
  • Size: 5.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.4 CPython/2.7.18 Linux/5.4.0-66-generic

File hashes

Hashes for glap-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 de037de4511b1b1abc643dd90057dc3c9351623c5c257d3ffbf54b9d2d0b4684
MD5 31d77168c97c34274c61a5cac5e59e78
BLAKE2b-256 96c568bc615f209e161d19d0ecf0306b654e2964a50ff9efabbf1228b30efd08

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