Python bindings and commandline client to the GenomeSpace API
Project description
This is a python client for the GenomeSpace API. There’s a Python API (the genomespaceclient module), and a command-line script (genomespace).
Installation
Install the latest release from PyPi:
pip install python-genomespaceclient
Commandline usage example
# copy local file to remote location
genomespace -u <username> -p <password> cp /tmp/local_file.txt https://dm.genomespace.org/datamanager/v1.0/file/Home/MyBucket/hello.txt
# list remote files
genomespace -u <username> -p <password> ls https://dm.genomespace.org/datamanager/v1.0/file/Home/MyBucket/
# move remote file to new location
genomespace -u <username> -p <password> mv https://dm.genomespace.org/datamanager/v1.0/file/Home/MyBucket/hello.txt https://dm.genomespace.org/datamanager/v1.0/file/Home/MyBucket/world.txt
# download remote file, with verbose output
genomespace -vvv -u <username> -p <password> mv https://dm.genomespace.org/datamanager/v1.0/file/Home/MyBucket/world.txt /tmp/new_local_file.txt
# delete remote file
genomespace -u <username> -p <password> rm https://dm.genomespace.org/datamanager/v1.0/file/Home/MyBucket/world.txt
Python usage example
from genomespaceclient import GenomeSpaceClient
client = GenomeSpaceClient(username="<username>", password="<password>")
client.copy("/tmp/local_file.txt", "https://dm.genomespace.org/datamanager/v1.0/file/Home/MyBucket/hello.txt")
client.list("https://dm.genomespace.org/datamanager/v1.0/file/Home/MyBucket/")
client.move("https://dm.genomespace.org/datamanager/v1.0/file/Home/MyBucket/hello.txt", "https://dm.genomespace.org/datamanager/v1.0/file/Home/MyBucket/world.txt")
client.copy("https://dm.genomespace.org/datamanager/v1.0/file/Home/MyBucket/world.txt", "/tmp/new_local_file.txt")
client.delete("https://dm.genomespace.org/datamanager/v1.0/file/Home/MyBucket/world.txt")
Documentation
Documentation can be found at https://python-genomespaceclient.readthedocs.org.
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
Built Distribution
Close
Hashes for python-genomespaceclient-0.1.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b66307bef69995fd71c070e5bd1ca561c6201fa3315684d680ea59da86fe486e |
|
MD5 | 80821002d554ec197a217c30c7f08863 |
|
BLAKE2b-256 | b787375730fe985f2544324fb0856869451e5eb9e9194368ef1da06600199190 |
Close
Hashes for python_genomespaceclient-0.1.4-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a1c5cc440d904e7237d2f78e400ef98aaed060e64e49d6954aa9c7283c50c21d |
|
MD5 | fb054c09373a03e9602efdb108000d05 |
|
BLAKE2b-256 | 377276a76dee3a51796831242ad87842c19b18062e0a570265f865c49392e19f |