{ "info": { "author": "Vladimir K Urushev", "author_email": "urushev@yandex.ru", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Programming Language :: Python", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5" ], "description": "|PyPI Version| |Build Status|\n\n==================\nredis-astra\n==================\n\nRedis-astra is Python light ORM for Redis.\n\n*Note*: version 2 has uncomportable changes with version 1. See `CHANGELOG.txt `_\n\n\nExample:\n\n.. code:: python\n\n import redis\n from astra import models\n\n db = redis.StrictRedis(host='127.0.0.1', decode_responses=True)\n\n class SiteObject(models.Model):\n def get_db(self):\n return db\n \n name = models.CharHash()\n\n class UserObject(models.Model):\n def get_db(self):\n return db\n \n name = models.CharHash()\n login = models.CharHash()\n site = models.ForeignKey(to=SiteObject)\n sites_list = models.List(to=SiteObject)\n viewers = models.IntegerField()\n\n def save(self, action, attr=None, value=None): \n print('\\t * %s' % kwargs)\n\n\nSo you can use it like this:\n\n.. code:: python\n\n >>> user = UserObject(pk=1, name=\"Mike\", viewers=5)\n \t* {'action': 'post_init', 'value': {'name': 'Mike', 'viewers': 5}}\n >>> user.login = 'mike@null.com'\n * {'action': 'pre_assign', 'attr': 'login', 'value': 'mike@null.com'}\n\t * {'action': 'post_assign', 'attr': 'login', 'value': 'mike@null.com'}\n >>> user.login\n 'mike@null.com'\n >>> user.viewers_incr(2)\n 7\n >>> site = SiteObject(pk=1, name=\"redis.io\")\n >>> user.site = site\n * {'attr': 'site', 'action': 'm2m_link', 'value': }\n >>> user.sites_list.lpush(site, site, site)\n 3\n >>> len(user.sites_list)\n 3\n >>> user.sites_list[2].name\n 'redis.io'\n >>> user.site = None\n\t * {'attr': 'site', 'action': 'm2m_remove'}\n >>> user.remove()\n * {'action': 'pre_remove', 'attr': 'pk', 'value': '1'}\n * {'action': 'post_remove', 'attr': 'pk', 'value': '1'}\n\n\n\nInstall\n==================\n\nPython versions 2.6, 2.7, 3.3, 3.4, 3.5 are supported\nRedis-py versions >= 2.9.1\n\n.. code:: bash\n\n pip install redis-astra\n\n\n.. |PyPI Version| image:: https://img.shields.io/pypi/v/redis-astra.png\n :target: https://pypi.python.org/pypi/redis-astra\n.. |Build Status| image:: https://travis-ci.org/pilat/redis-astra.png\n :target: https://travis-ci.org/pilat/redis-astra", "description_content_type": "", "docs_url": null, "download_url": "https://github.com/pilat/redis-astra/tarball/2.0.0", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/pilat/redis-astra", "keywords": "Redis", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "redis-astra", "package_url": "https://pypi.org/project/redis-astra/", "platform": "", "project_url": "https://pypi.org/project/redis-astra/", "project_urls": { "Download": "https://github.com/pilat/redis-astra/tarball/2.0.0", "Homepage": "https://github.com/pilat/redis-astra" }, "release_url": "https://pypi.org/project/redis-astra/2.0.0/", "requires_dist": null, "requires_python": "", "summary": "ORM for Redis", "version": "2.0.0" }, "last_serial": 3710358, "releases": { "0.4.5": [ { "comment_text": "", "digests": { "md5": "fe695d6f212c0ddb2abc4d10c573dd0a", "sha256": "fff87eadaed994284792207d293b905d7a93a84bb640fd521b03eed9f31d8e77" }, "downloads": -1, "filename": "redis-astra-0.4.5.zip", "has_sig": false, "md5_digest": "fe695d6f212c0ddb2abc4d10c573dd0a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9195, "upload_time": "2016-06-22T01:28:57", "url": "https://files.pythonhosted.org/packages/a9/a3/5b6d1b2ab2e93a852b816a0a770d359c027dc4781834b4a6aee7788b6fd4/redis-astra-0.4.5.zip" } ], "0.6.4": [ { "comment_text": "", "digests": { "md5": "1232a8988109868b8b190fb91f81c0a5", "sha256": "2510f1e28245b93d13aa37595ba4afbf7945160bc34225a54d500043e2ff76db" }, "downloads": -1, "filename": "redis-astra-0.6.4.zip", "has_sig": false, "md5_digest": "1232a8988109868b8b190fb91f81c0a5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12459, "upload_time": "2016-07-04T00:36:58", "url": "https://files.pythonhosted.org/packages/a6/20/fcf0638a2884ae495493fdc98e471be1d2c1f9b8746de4c30f7eda4e7570/redis-astra-0.6.4.zip" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "32bd471267843cbbe14961345ba64158", "sha256": "d1f6624a252e59d7b9a0ea3745d6d5ab2a587915f2d67e024316701600fbb83b" }, "downloads": -1, "filename": "redis-astra-1.0.1.zip", "has_sig": false, "md5_digest": "32bd471267843cbbe14961345ba64158", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12547, "upload_time": "2016-09-27T02:37:21", "url": "https://files.pythonhosted.org/packages/ff/6c/56c65cfc0e087812716c77db483874a418b29d92e4bdaa976f9fa167790a/redis-astra-1.0.1.zip" } ], "1.0.2": [ { "comment_text": "", "digests": { "md5": "34a518f661823547bacfd40a052ae785", "sha256": "9fdcc0131a14577f9d626ddc5012738e92b01727e419fe32fc30d7f87d3ba4bf" }, "downloads": -1, "filename": "redis-astra-1.0.2.zip", "has_sig": false, "md5_digest": "34a518f661823547bacfd40a052ae785", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12561, "upload_time": "2016-12-06T15:49:59", "url": "https://files.pythonhosted.org/packages/04/bc/18507033a5eb067c9e2f5b1e788789b4c82284bfb27976dcf8b5b57763a8/redis-astra-1.0.2.zip" } ], "1.0.3": [ { "comment_text": "", "digests": { "md5": "2d341d9b3188c8a2534b2c527b7fd69f", "sha256": "21914fa660631fb7a9544e9e4b8b44376f388d4bc8a1c092463a336802d50f4c" }, "downloads": -1, "filename": "redis-astra-1.0.3.zip", "has_sig": false, "md5_digest": "2d341d9b3188c8a2534b2c527b7fd69f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12537, "upload_time": "2017-01-19T23:46:32", "url": "https://files.pythonhosted.org/packages/2b/6a/c459b898f36fd11ae0b5de7bb36c58ffd96a48138b25aa3dc32f46693838/redis-astra-1.0.3.zip" } ], "1.0.4": [ { "comment_text": "", "digests": { "md5": "5f53590465afc6bd0b7ed754bf3c124f", "sha256": "87958320b5dc33495ace130e5351932c5e77d413f62242f958646f1e80d9c647" }, "downloads": -1, "filename": "redis-astra-1.0.4.zip", "has_sig": false, "md5_digest": "5f53590465afc6bd0b7ed754bf3c124f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12860, "upload_time": "2017-01-29T12:41:16", "url": "https://files.pythonhosted.org/packages/74/24/d50bed210356548653226241f7eea245e40327ff89cfcdcaf09799e039f1/redis-astra-1.0.4.zip" } ], "1.0.5": [ { "comment_text": "", "digests": { "md5": "d2e3006c090ca800ed12437cb9bd4ee0", "sha256": "c430c6ad9a95e78974116999d16a8283c6e17a6a899e0f59c23df4baa1a83866" }, "downloads": -1, "filename": "redis-astra-1.0.5.zip", "has_sig": false, "md5_digest": "d2e3006c090ca800ed12437cb9bd4ee0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12886, "upload_time": "2017-02-08T00:35:27", "url": "https://files.pythonhosted.org/packages/ee/d4/0cd0319e344e025a6491f7aae2057647a82b16d4c90fe53d302dab7eb144/redis-astra-1.0.5.zip" } ], "1.0.6": [ { "comment_text": "", "digests": { "md5": "264d4d54588ee8f26240bcab272dea0e", "sha256": "fc3cd81c68f5ea5d4b633d4e73ac27dfa16d54ec568c3d47d5ba1cfba3ea2dab" }, "downloads": -1, "filename": "redis-astra-1.0.6.zip", "has_sig": false, "md5_digest": "264d4d54588ee8f26240bcab272dea0e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12951, "upload_time": "2017-02-08T01:28:28", "url": "https://files.pythonhosted.org/packages/57/cb/2bfcd73bab3fe4e8676bbc684236c5585abb84c0a612ae959b94a36b49ae/redis-astra-1.0.6.zip" } ], "1.0.7": [ { "comment_text": "", "digests": { "md5": "d91c76569047fb703fa3ea13058df850", "sha256": "c4084c4c553c8e88f1571562f74a2327d916c06525c1920f92940dcbd954e336" }, "downloads": -1, "filename": "redis-astra-1.0.7.zip", "has_sig": false, "md5_digest": "d91c76569047fb703fa3ea13058df850", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12968, "upload_time": "2017-02-08T02:09:13", "url": "https://files.pythonhosted.org/packages/84/3c/1e50731e30ea359a2c946acf58fdd84e70c8936a72c271289b1603ef7b6e/redis-astra-1.0.7.zip" } ], "2.0.0": [ { "comment_text": "", "digests": { "md5": "ce25a9376d213fa1c0074973aa887336", "sha256": "066bcffb678a737b376f4bff297f753103334cf9da5eb55d0b0c8d03c1dbd102" }, "downloads": -1, "filename": "redis-astra-2.0.0.zip", "has_sig": false, "md5_digest": "ce25a9376d213fa1c0074973aa887336", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12036, "upload_time": "2018-03-27T14:04:25", "url": "https://files.pythonhosted.org/packages/88/7c/ef76c0be4ddc1bd6d80729edce20bd32d02857a7894305bee83205cb5b60/redis-astra-2.0.0.zip" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "ce25a9376d213fa1c0074973aa887336", "sha256": "066bcffb678a737b376f4bff297f753103334cf9da5eb55d0b0c8d03c1dbd102" }, "downloads": -1, "filename": "redis-astra-2.0.0.zip", "has_sig": false, "md5_digest": "ce25a9376d213fa1c0074973aa887336", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12036, "upload_time": "2018-03-27T14:04:25", "url": "https://files.pythonhosted.org/packages/88/7c/ef76c0be4ddc1bd6d80729edce20bd32d02857a7894305bee83205cb5b60/redis-astra-2.0.0.zip" } ] }