======
GenAPI
======
GenAPI is a 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:
.. code-block:: python
gen = GenCloud('anonymous@genialis.com', 'anonymous', 'http://cloud.genialis.com')
Get all project and select the first one:
.. code-block:: python
projects = gen.projects()
project = projects.itervalues().next()
Get expression objects and select the first one:
.. code-block:: python
objects = project.objects(type__startswith='data:expression')
object = object.itervalues().next()
Print annotation:
.. code-block:: python
object.print_annotation()
Print file fields:
.. code-block:: python
object.print_downloads()
Download file:
.. code-block:: python
object.download('output.rpkum')
Raw data
{
"_id": null,
"home_page": "https://github.com/genialis/genesis-genapi/",
"name": "GenAPI",
"maintainer": null,
"docs_url": null,
"requires_python": null,
"maintainer_email": null,
"keywords": null,
"author": "Genialis d.o.o.",
"author_email": "dev-team@genialis.com",
"download_url": "https://files.pythonhosted.org/packages/48/94/460841b690604e5b581c91733b36a29eab98471f4ad692f59282d4bc9902/GenAPI-0.0.8.tar.gz",
"platform": "UNKNOWN",
"description": "======\nGenAPI\n======\n\nGenAPI is a Python API for the Genesis platform.\n\n=======\nInstall\n=======\n\nTo install, run::\n\n python setup.py install\n\nTo install for development, run::\n\n python setup.py develop\n\n=====\nUsage\n=====\n\nCreate an API instance:\n\n.. code-block:: python\n\n gen = GenCloud('anonymous@genialis.com', 'anonymous', 'http://cloud.genialis.com')\n\n\nGet all project and select the first one:\n\n.. code-block:: python\n\n projects = gen.projects()\n project = projects.itervalues().next()\n\nGet expression objects and select the first one:\n\n.. code-block:: python\n\n objects = project.objects(type__startswith='data:expression')\n object = object.itervalues().next()\n\nPrint annotation:\n\n.. code-block:: python\n\n object.print_annotation()\n\nPrint file fields:\n\n.. code-block:: python\n\n object.print_downloads()\n\nDownload file:\n\n.. code-block:: python\n\n object.download('output.rpkum')",
"bugtrack_url": null,
"license": "Proprietary software",
"summary": "A Python API for the Genesis platform.",
"version": "0.0.8",
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "4894460841b690604e5b581c91733b36a29eab98471f4ad692f59282d4bc9902",
"md5": "dbed68dc200198c8cf32a38abaf0fae6",
"sha256": "1f8d15a91075a486f1eff2e6a7c077883007ea96347d3226c79156f4a25256a0"
},
"downloads": -1,
"filename": "GenAPI-0.0.8.tar.gz",
"has_sig": false,
"md5_digest": "dbed68dc200198c8cf32a38abaf0fae6",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 5933,
"upload_time": "2014-11-28T08:22:46",
"upload_time_iso_8601": "2014-11-28T08:22:46.857159Z",
"url": "https://files.pythonhosted.org/packages/48/94/460841b690604e5b581c91733b36a29eab98471f4ad692f59282d4bc9902/GenAPI-0.0.8.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2014-11-28 08:22:46",
"github": true,
"gitlab": false,
"bitbucket": false,
"github_user": "genialis",
"github_project": "genesis-genapi",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"requirements": [
{
"name": "sphinx",
"specs": [
[
"==",
"1.3.1"
]
]
},
{
"name": "requests",
"specs": [
[
"==",
"2.6.0"
]
]
},
{
"name": "slumber",
"specs": [
[
"==",
"0.7.1"
]
]
}
],
"lcname": "genapi"
}