Description¶
Wrapper for the zenodo_get module that suppresses the animated progress bar in CI environments while preserving all informational messages. Detects CI environments via the CI environment variable and provides cleaner output for automated pipelines.
Usage¶
python3 tools/zenodo_get_ci.py [ZENODO_GET_OPTIONS]All options are passed through to the underlying zenodo_get module.
Examples¶
# Download all files from a Zenodo record
python3 tools/zenodo_get_ci.py --output-dir=zenodo-123456 123456
# Use sandbox
python3 tools/zenodo_get_ci.py --sandbox --output-dir=zenodo-123456 123456
# With DOI
python3 tools/zenodo_get_ci.py 10.5281/zenodo.123456Requirements¶
Python >= 3.6
zenodo-get: Zenodo download client
Install with:
pip install zenodo-getBehavior¶
Environment Variables¶
CI- When set, suppresses the progress bar by redirecting stdout to /dev/null
Output Modes¶
In CI environments (CI env var set): Progress bar is suppressed, only informational messages shown
In interactive environments: Progress bar is shown normally
All informational messages are preserved (they go to stderr)
Technical Details¶
The zenodo_get module writes informational messages to stderr via eprint(), while the progress bar from the wget library writes to stdout. This wrapper suppresses only the progress bar by redirecting stdout in CI mode.
See Also¶
download_zenodo_draft.py - Download from Zenodo draft deposits (requires authentication)
download_zenodo_public.sh - Shell script for public Zenodo downloads