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)
Release files for Genesis-PyAPI 1.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| Genesis-PyAPI-1.2.1.tar.gz | 16.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| Genesis_PyAPI-1.2.1-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details |
Total release size: 26.6 kB
Release files / Genesis-PyAPI-1.2.1.tar.gz
| Download URL | Genesis-PyAPI-1.2.1.tar.gz |
|---|---|
| Size | 16.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2989f582eb619cd18c0fda10c69d38404781ddc4161a77f18c29d02fbdee577c
|
|
BLAKE2b-256 checksum How to use checksums |
98d2c8c4fc6930cbfa09d2cc3dbe5903bef0a3c8a467096286682af3e7caa910
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / Genesis_PyAPI-1.2.1-py2.py3-none-any.whl
| Download URL | Genesis_PyAPI-1.2.1-py2.py3-none-any.whl |
|---|---|
| Size | 10.1 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
0f1c17f0561ae828dd0ca3afdfe0e67e026be8368b52fdebe9117c7162212b87
|
|
BLAKE2b-256 checksum How to use checksums |
9688a6e2bc5b150890854578181f95475e5d931c997cd9b9adf381cb20f19db0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |