{ "info": { "author": "Samuel Sanchez", "author_email": "samuel@pagedegeek.com", "bugtrack_url": null, "classifiers": [], "description": "# Example:\n\nfrom active_redis import ActiveRedis, ActiveRedisModel, UUIDGenerator\n\nclass Movie(ActiveRedisModel):\n stored_attrs = ['title', 'year', 'author']\n\n def __init__(self, uuid, title, year, author):\n self.uuid = uuid\n self.title, self.year, self.author = title, year, author\n\n\nif __name__ == '__main__':\n ActiveRedis.config = {\n 'connexion': {'db': 3},\n 'namespace_prefix': 'mycinema'\n }\n\n assert Movie.delete_all()\n assert 0, Movie.count()\n\n topgun = Movie(UUIDGenerator.generate(), 'TopGun', 1987, 'Tony S.')\n assert topgun.save()\n\n titanic = Movie(UUIDGenerator.generate(), 'Titanic', 1997, 'James C.')\n assert titanic.save()\n\n topgun.update_attr('title', 'Top Gun')\n assert 'Top Gun', Movie.find(topgun.uuid).title\n\n assert 2, Movie.count()\n assert 2, len(Movie.find_all())\n\n m = Movie.find(topgun.uuid)\n m.delete()\n\n assert 1, Movie.count()\n assert 1, len(Movie.find_all())", "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/PagedeGeek/active_redis", "keywords": "Redis ActiveRecord", "license": "UNKNOWN", "maintainer": null, "maintainer_email": null, "name": "active_redis", "package_url": "https://pypi.org/project/active_redis/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/active_redis/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://github.com/PagedeGeek/active_redis" }, "release_url": "https://pypi.org/project/active_redis/0.0.2/", "requires_dist": null, "requires_python": null, "summary": "Simple ActiveRecord pattern for Redis", "version": "0.0.2" }, "last_serial": 828203, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "4b5f311f8aae43dc9aae42433420f720", "sha256": "286c2a40fb811dd825a72f9abf240d3e7b8e606fdc505481ed7cba5f02afe03e" }, "downloads": -1, "filename": "active_redis-0.0.1.macosx-10.4-x86_64.exe", "has_sig": false, "md5_digest": "4b5f311f8aae43dc9aae42433420f720", "packagetype": "bdist_wininst", "python_version": "any", "requires_python": null, "size": 67038, "upload_time": "2013-07-30T12:55:53", "url": "https://files.pythonhosted.org/packages/b1/f8/1fffe600c52a9c801ee22abfebb050a46c6f46a65c4492e464e6d340823e/active_redis-0.0.1.macosx-10.4-x86_64.exe" }, { "comment_text": "", "digests": { "md5": "1bc4ad1ce769282f8124ce7f180f74cf", "sha256": "d07e3b8f197bcc56580867a5d3a01a402d7e09d596ff7c2c50ea974196332219" }, "downloads": -1, "filename": "active_redis-0.0.1.tar.gz", "has_sig": false, "md5_digest": "1bc4ad1ce769282f8124ce7f180f74cf", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2779, "upload_time": "2013-07-30T12:55:49", "url": "https://files.pythonhosted.org/packages/8b/79/bfa0e7783860cc0f1dc8508f7faca1fdb92ceafb294f3b19223457ea944d/active_redis-0.0.1.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "7b8c5c0025617b46a5d404507d48aa1f", "sha256": "79780b0604d60cdf53bc0bb51e73973193bc74e5ff779ed8a80d4aa6083f65bf" }, "downloads": -1, "filename": "active_redis-0.0.2.macosx-10.4-x86_64.exe", "has_sig": false, "md5_digest": "7b8c5c0025617b46a5d404507d48aa1f", "packagetype": "bdist_wininst", "python_version": "any", "requires_python": null, "size": 67058, "upload_time": "2013-07-30T13:58:21", "url": "https://files.pythonhosted.org/packages/0e/ee/f2d1bf5bc92d606085a8894c1ac6a07289a1eb0fba6ea399a2f0e986e889/active_redis-0.0.2.macosx-10.4-x86_64.exe" }, { "comment_text": "", "digests": { "md5": "195cfa443457528d9a584a285282027d", "sha256": "ed8e808c1ed73f918f1db00c0ca0f17c340d6b55b99215c0933fa8a651c488f2" }, "downloads": -1, "filename": "active_redis-0.0.2.tar.gz", "has_sig": false, "md5_digest": "195cfa443457528d9a584a285282027d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2781, "upload_time": "2013-07-30T13:58:19", "url": "https://files.pythonhosted.org/packages/32/47/bd854a688472f43888b298d15dcdc7a840d33083f5a94f4537e402333e92/active_redis-0.0.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "7b8c5c0025617b46a5d404507d48aa1f", "sha256": "79780b0604d60cdf53bc0bb51e73973193bc74e5ff779ed8a80d4aa6083f65bf" }, "downloads": -1, "filename": "active_redis-0.0.2.macosx-10.4-x86_64.exe", "has_sig": false, "md5_digest": "7b8c5c0025617b46a5d404507d48aa1f", "packagetype": "bdist_wininst", "python_version": "any", "requires_python": null, "size": 67058, "upload_time": "2013-07-30T13:58:21", "url": "https://files.pythonhosted.org/packages/0e/ee/f2d1bf5bc92d606085a8894c1ac6a07289a1eb0fba6ea399a2f0e986e889/active_redis-0.0.2.macosx-10.4-x86_64.exe" }, { "comment_text": "", "digests": { "md5": "195cfa443457528d9a584a285282027d", "sha256": "ed8e808c1ed73f918f1db00c0ca0f17c340d6b55b99215c0933fa8a651c488f2" }, "downloads": -1, "filename": "active_redis-0.0.2.tar.gz", "has_sig": false, "md5_digest": "195cfa443457528d9a584a285282027d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2781, "upload_time": "2013-07-30T13:58:19", "url": "https://files.pythonhosted.org/packages/32/47/bd854a688472f43888b298d15dcdc7a840d33083f5a94f4537e402333e92/active_redis-0.0.2.tar.gz" } ] }