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 details)
Built Distribution
File details
Details for the file Genesis-PyAPI-1.2.0.tar.gz
.
File metadata
- Download URL: Genesis-PyAPI-1.2.0.tar.gz
- Upload date:
- Size: 7.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 91d983400d85b6685c0f0013383cac91790bbb6e92c4d7f1a6e436bbcd58efb4 |
|
MD5 | 3d5c6dc30f37811a23eea3699837a216 |
|
BLAKE2b-256 | d6e83fdcc68dfe5db49010f423b90e0860dc02ebcfed34226acc9e9fe4009943 |
File details
Details for the file Genesis_PyAPI-1.2.0-py2.py3-none-any.whl
.
File metadata
- Download URL: Genesis_PyAPI-1.2.0-py2.py3-none-any.whl
- Upload date:
- Size: 9.7 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2f98ce604758846b127a9494095b6f3045575691cbca51c7bac2d7e80f19eb3c |
|
MD5 | c43f6f43c0be8f3cbab6a5ded5b91fda |
|
BLAKE2b-256 | 2340c42d6802cfb5c6eb34db2ecf98eb966be29c83e9db143b80b22223b710f2 |