{
"info": {
"author": "Ales Raszka, Mark Birger",
"author_email": "araszka@redhat.com, mbirger@redhat.com",
"bugtrack_url": null,
"classifiers": [
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Intended Audience :: Developers",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Operating System :: OS Independent",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3.6",
"Topic :: Database",
"Topic :: Software Development :: Libraries :: Python Modules"
],
"description": "Python lightblue library\n========================\n\n|codecov|\n\n|Build Status|\n\nThis is python library for `Lightblue `__\ndatabase. It can be used as API interface.\n\nExample of usage\n----------------\n\nLevels of abstraction (from low to high):\n\n1) LightBlueEntity and LightBlueService\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\nBasic modules to query a LightBlue on a level of the request.\n\n.. code:: python\n\n from lightblue.service import LightBlueService\n from lightblue.entity import LightBlueEntity\n\n service = LightBlueService(\n 'https://data-url.com/data',\n 'https://metadata-url.com/metadata')\n\n interface = LightBlueEntity(\n lightblue_service=service,\n entity_name='foo',\n version='1.0.0')\n\n2) LightBlueQuery\n~~~~~~~~~~~~~~~~~\n\nClass that represents a query to LB in time (both non-executed and\nexecuted states). Has a relation to the LightBlueEntity.\n\nUsage example:\n\n.. code:: python\n\n from lightblue.query import LightBlueQuery\n\n LightBlueQuery(_id='hash', interface=interface).find()\n a = LightBlueQuery(('foo', '$neq', 'value'), bar='value2', interface=interface)\n a._add_to_projection('foo', recursive=['bar'])\n a._add_to_update(unset='foobar')\n a.update()\n LightBlueQuery.insert({'key': 'item'}, interface)\n\nWhy \\_add_to_projection() is private? Because we have another level of\nabstraction\u2026\n\n3) LightBlueGenericSelection\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\n- inherits LightBlueQuery and extends the functionality with\n post-processing, so you can call:\n\n.. code:: python\n\n from lightblue.selection import LightBlueGenericSelection\n\n LightBlueGenericSelection(foo='value', interface=interface).find(\n check_response=True,\n selector='/processed/0/bar/',\n count=(1, 2),\n fallback=None,\n postprocess=lambda x: x.split('.')[-1])\n\nso the query above will select documents with a specific foo value, it\nwill check the successful query of a LB response and count of response\ndocuments of min 1 and max 2, with a fallback if it is out of range. It\nwill select \u2018bar\u2019 from the first response item and will process it with\nthe provided lambda.\n\nThat level of abstraction is generic because it is not specific to an\nentity.\n\nDependencies\n------------\n\n- `BeanBag `__\n- `Dpath `__\n\n.. |codecov| image:: https://codecov.io/gh/redhat-aqe/python-lightblue/branch/master/graph/badge.svg\n :target: https://codecov.io/gh/redhat-aqe/python-lightblue\n.. |Build Status| image:: https://travis-ci.org/redhat-aqe/python-lightblue.svg?branch=master\n :target: https://travis-ci.org/redhat-aqe/python-lightblue",
"description_content_type": "",
"docs_url": null,
"download_url": "",
"downloads": {
"last_day": -1,
"last_month": -1,
"last_week": -1
},
"home_page": "https://github.com/redhat-aqe/python-lightblue",
"keywords": "",
"license": "GPLv3",
"maintainer": "",
"maintainer_email": "",
"name": "python-lightblue",
"package_url": "https://pypi.org/project/python-lightblue/",
"platform": "",
"project_url": "https://pypi.org/project/python-lightblue/",
"project_urls": {
"Homepage": "https://github.com/redhat-aqe/python-lightblue"
},
"release_url": "https://pypi.org/project/python-lightblue/0.1.6/",
"requires_dist": null,
"requires_python": "",
"summary": "A Python API for Lightblue database.",
"version": "0.1.6"
},
"last_serial": 4963136,
"releases": {
"0.1.1": [
{
"comment_text": "",
"digests": {
"md5": "840e9207bdd74763c4d032c980759765",
"sha256": "0d6703c4e48d02684bb5a45a23a3c9c90dd5a124248b4a2caca5ec1f1fd21502"
},
"downloads": -1,
"filename": "python-lightblue-0.1.1.tar.gz",
"has_sig": false,
"md5_digest": "840e9207bdd74763c4d032c980759765",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 9424,
"upload_time": "2018-03-04T20:48:28",
"url": "https://files.pythonhosted.org/packages/0b/28/99d8917862035d91e60f3aed59cb49d8da8464906ee9fdd729d850236a45/python-lightblue-0.1.1.tar.gz"
}
],
"0.1.2": [
{
"comment_text": "",
"digests": {
"md5": "5c81fb17c173c03c3e5ed7189f708a11",
"sha256": "16d876aa2e35be5fcb0e4dab15fd55c802842706987afce98e97f132f9ea0db0"
},
"downloads": -1,
"filename": "python-lightblue-0.1.2.tar.gz",
"has_sig": false,
"md5_digest": "5c81fb17c173c03c3e5ed7189f708a11",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 9483,
"upload_time": "2018-03-04T22:02:12",
"url": "https://files.pythonhosted.org/packages/ea/c5/6799eddc6400ef22d1021a58dd5a0498a15a8ceec76272700fcc4ff7be7f/python-lightblue-0.1.2.tar.gz"
}
],
"0.1.3": [
{
"comment_text": "",
"digests": {
"md5": "52ed53e63f16c9edc5d6f3a7b883074c",
"sha256": "873a48e2033eba99b31462497db902233336c4074cc756f6f818c68c44c315f6"
},
"downloads": -1,
"filename": "python-lightblue-0.1.3.tar.gz",
"has_sig": false,
"md5_digest": "52ed53e63f16c9edc5d6f3a7b883074c",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 9919,
"upload_time": "2018-03-16T09:43:04",
"url": "https://files.pythonhosted.org/packages/63/18/bde0b0adef9b146ef5fd3aa7c22b1183e8a5a00af51970539d9c5836ef63/python-lightblue-0.1.3.tar.gz"
}
],
"0.1.4": [
{
"comment_text": "",
"digests": {
"md5": "abe66902e225a86de28226fa8431aaaa",
"sha256": "b2bb5eb98002a78994cfad5dcc2921fbdbe6e1aea0e04f9ff5610cd407250d6b"
},
"downloads": -1,
"filename": "python-lightblue-0.1.4.tar.gz",
"has_sig": false,
"md5_digest": "abe66902e225a86de28226fa8431aaaa",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 27203,
"upload_time": "2018-05-16T11:37:45",
"url": "https://files.pythonhosted.org/packages/81/dc/ae98c6e30038a7d66447e151faaff3f7a095ab261011756fe611f0714af1/python-lightblue-0.1.4.tar.gz"
}
],
"0.1.5": [
{
"comment_text": "",
"digests": {
"md5": "30da12745f2dff34970f4fd47326a985",
"sha256": "d2d694547517ab592b3a8124622a07d645f1a89056fc8822ebea6116ca14e7ee"
},
"downloads": -1,
"filename": "python-lightblue-0.1.5.tar.gz",
"has_sig": false,
"md5_digest": "30da12745f2dff34970f4fd47326a985",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 26064,
"upload_time": "2019-03-20T09:45:42",
"url": "https://files.pythonhosted.org/packages/4c/23/bdec443af4dccb1c24eb62592aff57523706459ea1518b3b2e184d53b42b/python-lightblue-0.1.5.tar.gz"
}
],
"0.1.6": [
{
"comment_text": "",
"digests": {
"md5": "63aac97a6a87f6289dc18ae68951aca2",
"sha256": "176aed21e3fefd3b7e56235e569f066a95d2effc042ab63294c38d868964c438"
},
"downloads": -1,
"filename": "python-lightblue-0.1.6.tar.gz",
"has_sig": false,
"md5_digest": "63aac97a6a87f6289dc18ae68951aca2",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 27164,
"upload_time": "2019-03-20T11:05:53",
"url": "https://files.pythonhosted.org/packages/2a/56/a447e2e955d4e61bdacb0f9d2ef3838b77b09ab95cefba04cc5ba849d910/python-lightblue-0.1.6.tar.gz"
}
]
},
"urls": [
{
"comment_text": "",
"digests": {
"md5": "63aac97a6a87f6289dc18ae68951aca2",
"sha256": "176aed21e3fefd3b7e56235e569f066a95d2effc042ab63294c38d868964c438"
},
"downloads": -1,
"filename": "python-lightblue-0.1.6.tar.gz",
"has_sig": false,
"md5_digest": "63aac97a6a87f6289dc18ae68951aca2",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 27164,
"upload_time": "2019-03-20T11:05:53",
"url": "https://files.pythonhosted.org/packages/2a/56/a447e2e955d4e61bdacb0f9d2ef3838b77b09ab95cefba04cc5ba849d910/python-lightblue-0.1.6.tar.gz"
}
]
}