HuBMAP and SenNet command-line interface to download data using a manifest file.
Project description
Command-Line Transfer
Command-Line Transfer (CLT) is a command-line interface (CLI) used to download multiple files and directories from the Globus file transfer service. The CLT initiates a transfer from a Globus endpoint to the Globus Connect Personal application. CLT provides hubmap-clt
and sennet-clt
command-line interfaces for HuBMAP and SenNet, respectively.
Usage
CLT provides hubmap-clt
and sennet-clt
command-line interfaces. The following documentation uses <consortium>-clt
in examples. Please replace <consortium>
with hubmap
or sennet
.
Usage documentation can also be found by running the following command:
<consortium>-clt -h
Login
A one-time login is required for any download session. For non-public data, you must log in with your HuBMAP or SenNet account. For publicly available data, you can log in with any account accepted by the login form (Google and ORCID). Log in can be initiated using the following command:
<consortium>-clt login
Logout
Logout can be used to log out the current user.
<consortium>-clt logout
Transfer
A data transfer and download can be initiated using the transfer command and a manifest file. You must be logged in to use the transfer command.
<consortium>-clt transfer <PATH/TO/MANIFEST/FILE>
An optional destination argument can be specified. The destination is the directory on the user's computer where data will be downloaded. The directory will be created if it doesn't exist. The destination argument is relative to the user's home directory (~). For example, --destination Desktop/<consortium>-data
corresponds to an absolute path of ~/Desktop/<consortium>-data
. The default destination directory is ~/<consortium>-downloads
.
<consortium>-clt transfer <PATH/TO/MANIFEST/FILE> --destination <PATH/TO/DESTINATION/DIRECTORY>
Whoami
Whoami can be used to display the information of the currently logged in user.
<consortium>-clt whoami
Additional Documentation
Additional documentation can be found at the HuBMAP and SenNet documentation pages.
Development
A src/atlas_consortia_clt/common/app.cfg
configuration file is required to build the CLT. An example app.cfg.example
file is located in the src/atlas_consortia_clt/common
directory. Replace the values in app.cfg.example
and rename the file to app.cfg
.
When contributing to the CLT, run the following commands in the root directory to install the editable package.
python3 -m pip install --upgrade pip setuptools
python3 -m pip install -e .
Building and Publishing
Install the build
package and build the project by running the following commands in the root directory. These commands should generate a dist
directory.
python3 -m pip install --upgrade build
python3 -m build
Install the twine
package and upload the build files to PyPI by running the following commands. The second command will prompt for a PyPI username and password.
python3 -m pip install --upgrade twine
python3 -m twine upload dist/*
See the Python Documentation for more detailed instructions on building and publishing.
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
Built Distribution
File details
Details for the file atlas_consortia_clt-1.0.3.tar.gz
.
File metadata
- Download URL: atlas_consortia_clt-1.0.3.tar.gz
- Upload date:
- Size: 9.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.8.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d6a77878c4f6015534e6f9e7fcbd9fa4f63d7003029fa3c50b8e2d651d3a44f3 |
|
MD5 | 61ec5858aebb69a1e1c702dd6e97fd8c |
|
BLAKE2b-256 | 105984ac3a130d975e49d18d7b2c9b8b5f25388bdf487ff6cfbdfa267b57dad5 |
File details
Details for the file atlas_consortia_clt-1.0.3-py3-none-any.whl
.
File metadata
- Download URL: atlas_consortia_clt-1.0.3-py3-none-any.whl
- Upload date:
- Size: 10.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.8.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3c380c47e159c1b302d5eb731823eeac2ce66f47b713bc0ccd89416930051d18 |
|
MD5 | 379f3aea2bb1d5b33d7ef288b71ecfec |
|
BLAKE2b-256 | b3a1e85a401518b92cbadcfb8fbec5ba4638788361597ca607e444f2be37c226 |