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.

Filename, size & hash SHA256 hash help File type Python version Upload date
Genesis_PyAPI-1.2.1-py2.py3-none-any.whl (10.1 kB) Copy SHA256 hash SHA256 Wheel py2.py3
Genesis-PyAPI-1.2.1.tar.gz (16.5 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page