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.1.tar.gz (16.5 kB view details)

Uploaded Source

Built Distribution

Genesis_PyAPI-1.2.1-py2.py3-none-any.whl (10.1 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

File hashes

Hashes for Genesis-PyAPI-1.2.1.tar.gz
Algorithm Hash digest
SHA256 2989f582eb619cd18c0fda10c69d38404781ddc4161a77f18c29d02fbdee577c
MD5 07596ed702cd869674474d9f501ee32c
BLAKE2b-256 98d2c8c4fc6930cbfa09d2cc3dbe5903bef0a3c8a467096286682af3e7caa910

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for Genesis_PyAPI-1.2.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 0f1c17f0561ae828dd0ca3afdfe0e67e026be8368b52fdebe9117c7162212b87
MD5 41958d0af678ba53504d4e6f560089ce
BLAKE2b-256 9688a6e2bc5b150890854578181f95475e5d931c997cd9b9adf381cb20f19db0

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