Downloader for public and proprietary ESO archive data
Project description
A python package which provides an easy way to download data for a given ESO observational program ID.
Getting started
To run eso-downloader, you will need to add your ESO portal username and password to the system keyring (the secure place to store login details), and create a config file detailing where to put the data.
Storing passwords/credentials
This package uses the keyring package (https://pypi.org/project/keyring) to store passwords and other credentials. If keyring is unable to find a place to store and read secrets from, see how to configure keyring at https://keyring.readthedocs.io/en/stable/#configuring.
To add your password to the keyring on your system, run:
keyring set eso-downloader <your ESO portal username>
and enter your ESO portal password (in the future, we hope that there will be long-lasting tokens so that we do not need to store the portal password directly). To confirm that the password is saved, run:
keyring get eso-downloader <your ESO portal username>
Creating a config file
An initial starter config file (in .ini format) would be:
[DEFAULT] username = <your ESO portal username> base_dir = <where you want to save the downloaded data>
If you need to use different paths or different usernames for particular programs, you can add sections for specific programs e.g.:
[103.20AX.101] username = <some other username>
or:
[98.13BA.215] base_dir = <some other directory>
Running the script
The script will use the config file and the list of program IDs passed to it to download in parallel all the files needed for the reduction of the found science files, skipping those already downloaded (see algorithm below).
Doing:
eso-downloader --config <path_to_config_file> <program_id> <program_id> ...
will start the download. If sent SIGTERM, the script will stop requesting new files, and finish downloading the files it was working on.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file eso-downloader-0.1.tar.gz
.
File metadata
- Download URL: eso-downloader-0.1.tar.gz
- Upload date:
- Size: 50.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9ac0e77435e2b7fd2e2086217c883ad8e0596032a829401638c02ecebb595361 |
|
MD5 | eaa9f1666057ccf2acc9d43ce45d00c2 |
|
BLAKE2b-256 | 8512a7eaf8b901d14ebf0bb0272ee00939c79f65b425990ef07f0d1b91b0e38b |