Python API for the Genesis platform.
Project description
Genesis PyAPI
Python API for the Genesis platform.
Install
To install, run:
python setup.py install
To install for development, run:
python setup.py develop
Usage
Create an API instance:
from genesis import Genesis
gen = Genesis()
Get all project and select the first one:
projects = gen.projects()
project = list(projects.values())[0]
Get expression objects and select the first one:
expressions = project.data(type__startswith='data:expression:')
expression = expressions[0]
Print annotation:
expression.print_annotation()
Print file fields:
expression.print_downloads()
Download file:
filename = expression.annotation['output.exp']['value']['file']
resp = expression.download('output.exp')
with open(filename, 'w') as fd:
fd.write(resp.content)
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
Genesis-PyAPI-1.2.1.tar.gz
(16.5 kB
view details)
Built Distribution
File details
Details for the file Genesis-PyAPI-1.2.1.tar.gz
.
File metadata
- Download URL: Genesis-PyAPI-1.2.1.tar.gz
- Upload date:
- Size: 16.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2989f582eb619cd18c0fda10c69d38404781ddc4161a77f18c29d02fbdee577c |
|
MD5 | 07596ed702cd869674474d9f501ee32c |
|
BLAKE2b-256 | 98d2c8c4fc6930cbfa09d2cc3dbe5903bef0a3c8a467096286682af3e7caa910 |
File details
Details for the file Genesis_PyAPI-1.2.1-py2.py3-none-any.whl
.
File metadata
- Download URL: Genesis_PyAPI-1.2.1-py2.py3-none-any.whl
- Upload date:
- Size: 10.1 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0f1c17f0561ae828dd0ca3afdfe0e67e026be8368b52fdebe9117c7162212b87 |
|
MD5 | 41958d0af678ba53504d4e6f560089ce |
|
BLAKE2b-256 | 9688a6e2bc5b150890854578181f95475e5d931c997cd9b9adf381cb20f19db0 |