Skip to main content

Download and upload release assets for GitLab projects and groups

This project has been archived.

The maintainers of this project have marked this project as archived. No new releases are expected.

Project description

cal-gitlab-releases

Download and upload release assets for GitLab projects and groups.

Installation

pip install cal-gitlab-releases

Usage

# Download release assets from a group
cal-gitlab-releases download -u https://gitlab.com -p myorg/public -o ./releases

# Upload release assets to a target GitLab
cal-gitlab-releases upload -u https://gitlab.example.com -p target-group -i ./releases -t TOKEN

Commands

download

Download release assets from GitLab projects or groups. Supports version filtering, manifest-based incremental downloads, and parallel threads.

Use --flat to download all files into a single directory (useful for manual inspection). Note that flat output cannot be used with the upload command, which requires the project/tag directory structure.

Size limits

Use --max-file-size (-S) to skip individual files larger than a threshold, and --max-total-size (-T) to cap the total bytes downloaded in a single session. Both accept human-readable suffixes: K, M, G, T (e.g., 500M, 10G). Files skipped due to size limits are recorded in the manifest so they are not re-attempted on subsequent runs. Files skipped by the total size budget are not recorded, so the next run will pick them up.

upload

Upload release assets to GitLab. Reads the same directory structure produced by download, creates releases if they don't exist, and attaches asset files as release links.

Configuration

Settings can be provided via CLI args, environment variables, or a config file at ~/.config/cal-gitlab-releases/config.json:

{
    "gitlab_url": "https://gitlab.example.com",
    "token": "glpat-xxxxxxxxxxxx",
    "base_group": "myorg",
    "output": "./downloads",
    "version_filter": "release",
    "parallel": 32,
    "max_file_size": "500M",
    "max_total_size": "10G"
}

Licence

MIT License — Copyright (c) 2026 Cyber Assessment Labs

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cal_gitlab_releases-1.1.0b1-py3-none-any.whl (39.8 kB view details)

Uploaded Python 3

File details

Details for the file cal_gitlab_releases-1.1.0b1-py3-none-any.whl.

File metadata

File hashes

Hashes for cal_gitlab_releases-1.1.0b1-py3-none-any.whl
Algorithm Hash digest
SHA256 4d93bea3eae7cf6426c1361aab3a7d31e0abb1b03aa0b2a0359c0a7c2f66ac79
MD5 a321b893b5546f17a20bd6ce36782cb6
BLAKE2b-256 093a20c40b86201522436edaca03212d46f45fc6c73c34e09c4becf0b7081f8a

See more details on using hashes here.

Supported by

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