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.0.tar.gz
(7.0 kB
view hashes)
Built Distribution
Close
Hashes for Genesis_PyAPI-1.2.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2f98ce604758846b127a9494095b6f3045575691cbca51c7bac2d7e80f19eb3c |
|
MD5 | c43f6f43c0be8f3cbab6a5ded5b91fda |
|
BLAKE2b-256 | 2340c42d6802cfb5c6eb34db2ecf98eb966be29c83e9db143b80b22223b710f2 |