EGA python client
Project description
EGA python client - pyEGA3
pyEGA3 uses the EGA REST API to download authorized datasets and files
Currently works only with Python3
REQUIREMENTS:
Python "requests" module
http://docs.python-requests.org/en/master/
pip3 install requests
Firewall Ports
This client makes https calls to the EGA AAI (https://ega.ebi.ac.uk:8443/) and to the EGA Data API (https://ega.ebi.ac.uk:8051). Both ports 8443 and 8051 must be reachable from the location where this client script is run. Otherwise you will experience timeouts.
(e.g. https://ega.ebi.ac.uk:8443/ega-openid-connect-server/, https://ega.ebi.ac.uk:8051/elixir/central/stats/load should not time out).
-------------------------------------------------------------------------
INSTALLATION:
sudo pip3 install pyega3
-------------------------------------------------------------------------
USAGE:
pyega3 [-h] [-d] -cf CREDENTIALS_FILE [-c CONNECTIONS] {datasets,files,fetch} ...
Download from EMBL EBI's EGA (European Genome-phenome Archive)
positional arguments:
{datasets,files,fetch}
subcommands
datasets List authorized datasets
files List files in a specified dataset
fetch Fetch a dataset or file
optional arguments:
-h, --help show this help message and exit
-d, --debug Extra debugging messages
-cf CREDENTIALS_FILE, --credentials-file CREDENTIALS_FILE
JSON file containing credentials
e.g.{'username':'user1','password':'toor'}
-c CONNECTIONS, --connections CONNECTIONS
Download using specified number of connections
-------------------------------------------------------------------------
Credentials file supposed to be in json format e.g:
{
"username": "my.email@domain.edu",
"password": "mypassword",
"client_secret":"AMenuDLjVdVo4BSwi0QD54LL6NeVDEZRzEQUJ7hJOM3g4imDZBHHX0hNfKHPeQIGkskhtCmqAJtt_jm7EKq-rWw"
}
Your username and password are provided to you by EGA.
pyEGA3 uses the EGA REST API to download authorized datasets and files
Currently works only with Python3
REQUIREMENTS:
Python "requests" module
http://docs.python-requests.org/en/master/
pip3 install requests
Firewall Ports
This client makes https calls to the EGA AAI (https://ega.ebi.ac.uk:8443/) and to the EGA Data API (https://ega.ebi.ac.uk:8051). Both ports 8443 and 8051 must be reachable from the location where this client script is run. Otherwise you will experience timeouts.
(e.g. https://ega.ebi.ac.uk:8443/ega-openid-connect-server/, https://ega.ebi.ac.uk:8051/elixir/central/stats/load should not time out).
-------------------------------------------------------------------------
INSTALLATION:
sudo pip3 install pyega3
-------------------------------------------------------------------------
USAGE:
pyega3 [-h] [-d] -cf CREDENTIALS_FILE [-c CONNECTIONS] {datasets,files,fetch} ...
Download from EMBL EBI's EGA (European Genome-phenome Archive)
positional arguments:
{datasets,files,fetch}
subcommands
datasets List authorized datasets
files List files in a specified dataset
fetch Fetch a dataset or file
optional arguments:
-h, --help show this help message and exit
-d, --debug Extra debugging messages
-cf CREDENTIALS_FILE, --credentials-file CREDENTIALS_FILE
JSON file containing credentials
e.g.{'username':'user1','password':'toor'}
-c CONNECTIONS, --connections CONNECTIONS
Download using specified number of connections
-------------------------------------------------------------------------
Credentials file supposed to be in json format e.g:
{
"username": "my.email@domain.edu",
"password": "mypassword",
"client_secret":"AMenuDLjVdVo4BSwi0QD54LL6NeVDEZRzEQUJ7hJOM3g4imDZBHHX0hNfKHPeQIGkskhtCmqAJtt_jm7EKq-rWw"
}
Your username and password are provided to you by EGA.
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
pyega3-3.0.23.tar.gz
(10.5 kB
view details)
File details
Details for the file pyega3-3.0.23.tar.gz
.
File metadata
- Download URL: pyega3-3.0.23.tar.gz
- Upload date:
- Size: 10.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.19.6 CPython/3.4.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 870f6738479cf67d1ec567e02fc6d610d2532661c14221d738f96500bacfe892 |
|
MD5 | c5de33c3567d31302be6545946885a36 |
|
BLAKE2b-256 | e819b25c2c5e74dbbd3009ff3a798057aa1ce7a8619fe9f671acab73d3b830ca |