A high-level API for interacting with the Human Brain Project archival storage at CSCS
Project description
A high-level API for interacting with the Human Brain Project archival storage at CSCS.
Author: Andrew Davison, CNRS
Usage:
```python
from hbp_archive import Container, Project, Archive
# Working with a single container
container = Container("MyContainer", username="xyzabc") # you will be prompted for your password
files = container.list()
local_file = container.download("README.txt")
number_of_files = container.count()
size_in_MB = container.size("MB")
# Working with a project
my_proj = Project('MyProject', username="xyzabc")
container = my_proj.get_container("MyContainer")
# Listing all your projects
archive = Archive(username="xyzabc")
projects = archive.projects
container = archive.find_container("MyContainer") # will search through all projects
```
Author: Andrew Davison, CNRS
Usage:
```python
from hbp_archive import Container, Project, Archive
# Working with a single container
container = Container("MyContainer", username="xyzabc") # you will be prompted for your password
files = container.list()
local_file = container.download("README.txt")
number_of_files = container.count()
size_in_MB = container.size("MB")
# Working with a project
my_proj = Project('MyProject', username="xyzabc")
container = my_proj.get_container("MyContainer")
# Listing all your projects
archive = Archive(username="xyzabc")
projects = archive.projects
container = archive.find_container("MyContainer") # will search through all projects
```
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
hbp_archive-0.3.0.tar.gz
(9.5 kB
view details)
File details
Details for the file hbp_archive-0.3.0.tar.gz
.
File metadata
- Download URL: hbp_archive-0.3.0.tar.gz
- Upload date:
- Size: 9.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 467d390937052fea3d083a403e3621d1d1edcc9c8a0c42f597db4f9e17fbb2a0 |
|
MD5 | 12bf9aff988195c81892fd35b770e211 |
|
BLAKE2b-256 | 23f1d6f40939b9accce15c8415ddbd9d3d76460dd57ff75f92b7d4dc16ef68c0 |