{ "info": { "author": "Dushyant Rijhwani", "author_email": "dushyant@dush.me", "bugtrack_url": null, "classifiers": [], "description": "pyla\n====\n\n.. image:: https://travis-ci.org/dushyant88/pyla.png \n\n.. image:: https://coveralls.io/repos/dushyant88/pyla/badge.svg?branch=master\n :target: https://coveralls.io/r/dushyant88/pyla?branch=master\n\npyla is a redis based storage system which can filter entries based on item's\nattributes. \n\nIn it's current version it stores the information of the entry in a sorted set\nwith all information present in the key.\n\nWhy pyla?\n---------\n\nSay you have certain jobs that you want to schedule and every job has certain\nattributes associated to it.\n\n.. code-block:: python\n\n from pyla import entries\n from pyla import fields\n\n class Job(entries.Entry):\n id = fields.BaseField(primary=True)\n type = fields.BaseField(index=True)\n assigned_to = fields.BaseField(index=True)\n info = fields.BaseField(index=False)\n\n j = Job(id=1, type='create', assigned_to='dush', info='testing')\n j.save()\n\non calling save on that particular entry you will have following sorted\nsets available in redis\n\n.. code-block::\n\n job\n job:type:create\n job:assigned_to:dush\n\nThen you have the following awesome filtering abilities:\n\n.. code-block:: python\n\n # Get all the jobs\n Job.objects.all() \n\n # Get jobs with type create\n Job.objects.filter(type='create') \n\n # Get jobs with either create or delete type\n Job.objects.filter(type=['create', 'delete']) \n\n # Get jobs which are assigened to dush\n Job.objects.filter(assigned_to='dush') \n\n # Get jobs which are assigened to dush or spam\n Job.objects.filter(assigned_to=['dush', 'spam'])\n\n # Get jobs which are assigened to dush and are of type create\n Job.objects.filter(assigned_to='dush', type='create')\n\n # Get jobs which are assigened to dush and are of type create or delete\n Job.objects.filter(assigned_to='dush', type=['create','delete'])\n\n # Get jobs which are assigened to dush or spam and are of type create or delete\n Job.objects.filter(assigned_to=['dush', 'spam'], type=['create','delete'])\n\nYou can have any number of filters over the fields which were set to index.\nObviously, the more indexes you have the slower your writes become.", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://github.com/dushyant88/pyla", "keywords": null, "license": "UNKNOWN", "maintainer": null, "maintainer_email": null, "name": "pyla", "package_url": "https://pypi.org/project/pyla/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/pyla/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://github.com/dushyant88/pyla" }, "release_url": "https://pypi.org/project/pyla/0.1.0b0/", "requires_dist": null, "requires_python": null, "summary": "pyla is a redis based storage system", "version": "0.1.0b0" }, "last_serial": 1422060, "releases": { "0.1.0b0": [ { "comment_text": "", "digests": { "md5": "df37b3f12178e3c4f70ee4f6c6821683", "sha256": "0d99f1c113f01cfbef1ded80af32e473086f8defa3040fcd05454150abf1385b" }, "downloads": -1, "filename": "pyla-0.1.0b0.tar.gz", "has_sig": false, "md5_digest": "df37b3f12178e3c4f70ee4f6c6821683", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4796, "upload_time": "2015-02-13T14:30:16", "url": "https://files.pythonhosted.org/packages/3b/43/c9f23c3bed9ff80e15c71c8b677128e8f69853af1e7e930434222cbc9afb/pyla-0.1.0b0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "df37b3f12178e3c4f70ee4f6c6821683", "sha256": "0d99f1c113f01cfbef1ded80af32e473086f8defa3040fcd05454150abf1385b" }, "downloads": -1, "filename": "pyla-0.1.0b0.tar.gz", "has_sig": false, "md5_digest": "df37b3f12178e3c4f70ee4f6c6821683", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4796, "upload_time": "2015-02-13T14:30:16", "url": "https://files.pythonhosted.org/packages/3b/43/c9f23c3bed9ff80e15c71c8b677128e8f69853af1e7e930434222cbc9afb/pyla-0.1.0b0.tar.gz" } ] }