从 Synapse 下载大型数据集的实用程序。
项目描述
突触下载器
从 Synapse 下载大型数据集的实用程序。
依赖项
- Python3.7
- 具有用户名/密码的Synapse帐户。通过第 3 方(例如 Google)的身份验证将不起作用,您必须拥有 Synapse 用户/通行证才能使API 进行身份验证。
安装
pip install synapse-downloader
配置
您的 Synapse 凭据可以在命令行 ( --username
, --password
) 上或通过环境变量提供。
SYNAPSE_USERNAME=your-synapse-username
SYNAPSE_PASSWORD=your-synapse-password
用法
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.
开发设置
pipenv --three
pipenv shell
make pip_install
make build
make install_local
查看所有命令的Makefile。
项目详情
关
synapse_downloader -0.0.6-py2.py3-none-any.whl 的哈希值
算法 | 哈希摘要 | |
---|---|---|
SHA256 | dc0475d0fc4ee5d2340b934a9a4e0ac84cd03d57e6d08e655a300e37dc0f15aa |
|
MD5 | d7a067b17fd241746fea3bf18e8f5edc |
|
布莱克2-256 | 198796bb1859e9e5bfba5505aaff7881a3649c6cb47a15dc32b6e852e046860b |