Skip to main content

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


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)

Uploaded Source

Built Distribution

Genesis_PyAPI-1.2.0-py2.py3-none-any.whl (9.7 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file Genesis-PyAPI-1.2.0.tar.gz.

File metadata

File hashes

Hashes for Genesis-PyAPI-1.2.0.tar.gz
Algorithm Hash digest
SHA256 91d983400d85b6685c0f0013383cac91790bbb6e92c4d7f1a6e436bbcd58efb4
MD5 3d5c6dc30f37811a23eea3699837a216
BLAKE2b-256 d6e83fdcc68dfe5db49010f423b90e0860dc02ebcfed34226acc9e9fe4009943

See more details on using hashes here.

File details

Details for the file Genesis_PyAPI-1.2.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for Genesis_PyAPI-1.2.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 2f98ce604758846b127a9494095b6f3045575691cbca51c7bac2d7e80f19eb3c
MD5 c43f6f43c0be8f3cbab6a5ded5b91fda
BLAKE2b-256 2340c42d6802cfb5c6eb34db2ecf98eb966be29c83e9db143b80b22223b710f2

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page