Utility for downloading large datasets from Synapse.
Project description
Synapse Downloader
Utility for downloading large datasets from Synapse.
Dependencies
- Python3.7
- A Synapse account with a username/password. Authentication through a 3rd party (.e.g., Google) will not work, you must have a Synapse user/pass for the API to authenticate.
Install
pip install synapse-downloader
Configuration
Your Synapse credential can be provided on the command line (--username, --password) or via environment variables.
SYNAPSE_USERNAME=your-synapse-username
SYNAPSE_PASSWORD=your-synapse-password
Usage
usage: synapse-downloader [-h] [-e [EXCLUDE]] [-u USERNAME] [-p PASSWORD]
[-ll LOG_LEVEL] [-ld LOG_DIR] [-dt DOWNLOAD_TIMEOUT]
[-w] [-wc] [-c] [-ci [COMPARE_IGNORE]]
entity-id download-path
positional arguments:
entity-id The ID of the Synapse entity to download or compare
(Project, Folder or File).
download-path The local path to save the files to or to compare.
optional arguments:
-h, --help show this help message and exit
-e [EXCLUDE], --exclude [EXCLUDE]
Items to exclude from download. Synapse IDs or names
(names are case-sensitive).
-u USERNAME, --username USERNAME
Synapse username.
-p PASSWORD, --password PASSWORD
Synapse password.
-ll LOG_LEVEL, --log-level LOG_LEVEL
Set the logging level.
-ld LOG_DIR, --log-dir LOG_DIR
Set the directory where the log file will be written.
-dt DOWNLOAD_TIMEOUT, --download-timeout DOWNLOAD_TIMEOUT
Set the maximum time (in seconds) a file can download
before it is canceled.
-w, --with-view Use an entity view for loading file info. Fastest for
large projects.
-wc, --with-compare Run the comparison after downloading everything.
-c, --compare Compare a local directory against a remote project or
folder.
-ci [COMPARE_IGNORE], --compare-ignore [COMPARE_IGNORE]
Path to directories or files to ignore when comparing.
Development Setup
pipenv --three
pipenv shell
make pip_install
make build
make install_local
See Makefile for all commands.
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
synapse-downloader-0.0.6.tar.gz
(17.8 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file synapse-downloader-0.0.6.tar.gz.
File metadata
- Download URL: synapse-downloader-0.0.6.tar.gz
- Upload date:
- Size: 17.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.7.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9674065f70dcc054989263d131416a11641ecd2f650ffaf1c4ed87e53ce15489
|
|
| MD5 |
0cbeb6f3d69a2d0353436d0db5fe692b
|
|
| BLAKE2b-256 |
460015f383bb49c6396a8432dc6f18f86661061871471b7680225e22a310322a
|
File details
Details for the file synapse_downloader-0.0.6-py2.py3-none-any.whl.
File metadata
- Download URL: synapse_downloader-0.0.6-py2.py3-none-any.whl
- Upload date:
- Size: 21.3 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.7.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dc0475d0fc4ee5d2340b934a9a4e0ac84cd03d57e6d08e655a300e37dc0f15aa
|
|
| MD5 |
d7a067b17fd241746fea3bf18e8f5edc
|
|
| BLAKE2b-256 |
198796bb1859e9e5bfba5505aaff7881a3649c6cb47a15dc32b6e852e046860b
|