{ "info": { "author": "zhou biao", "author_email": "vincent321x@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: Implementation", "Topic :: Software Development :: Libraries" ], "description": "SanicRedis\n==============\nRedis support for sanic.\n\nBuilt on top of [aioredis](https://github.com/aio-libs/aioredis).\n\nInstallation\n------------\n\nYou can install this package as usual with pip:\n\n pip install SanicRedis\n\nExample\n\n```python\nfrom sanic import Sanic\nfrom sanic.response import json\nfrom SanicRedis import BaseRedis\n\napp = Sanic(__name__)\nredisdb = dict(redisdb=8, redishost='localhost', redisport=6379, redispwd='password')\n\napp.config.update(redisdb)\nBaseRedis.init_app(app)\n\n\n# group key of redis\nclass GroupKey(BaseRedis):\n __coll__ = 'GroupKey_' # GroupKey + key\n\n\n@app.route('/test1')\nasync def test1(request):\n await GroupKey.set('testkey', 'value') # key is GroupKey_testkey\n result = await GroupKey.get('testkey') # get value of GroupKey_testkey\n return json(result)\n\n\nif __name__ == '__main__':\n app.run(debug=True)\n```\n\nResources\n---------\n\n- [PyPI](https://pypi.org/project/SanicRedis)", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/yancyzhou/SanicRedis", "keywords": "", "license": "", "maintainer": "zhou biao", "maintainer_email": "vincent321x@gmail.com", "name": "SanicRedis", "package_url": "https://pypi.org/project/SanicRedis/", "platform": "all", "project_url": "https://pypi.org/project/SanicRedis/", "project_urls": { "Homepage": "https://github.com/yancyzhou/SanicRedis" }, "release_url": "https://pypi.org/project/SanicRedis/0.1.2/", "requires_dist": null, "requires_python": "", "summary": "SanicRedis", "version": "0.1.2" }, "last_serial": 4572692, "releases": { "0.0.8": [ { "comment_text": "", "digests": { "md5": "31a6c4e7bea848df19fd96cf94d1d96e", "sha256": "e9c6abdbe5db1834781f6fc47252a5cae5d0b9797002c661d04e03a432139d66" }, "downloads": -1, "filename": "SanicRedis-0.0.8.tar.gz", "has_sig": false, "md5_digest": "31a6c4e7bea848df19fd96cf94d1d96e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5637, "upload_time": "2018-06-08T16:32:29", "url": "https://files.pythonhosted.org/packages/d9/6b/7997bf496689c2af8761f5acdee9daf75f951537c8d08fe1bc1e0b013464/SanicRedis-0.0.8.tar.gz" } ], "0.0.9": [ { "comment_text": "", "digests": { "md5": "eeeb057236fdeb10d36ec190f0767fc6", "sha256": "d2027d1fa06fda52b0bc7266e5d7eb2856153e7f54f4fb29c33132cfabaa7cf3" }, "downloads": -1, "filename": "SanicRedis-0.0.9.tar.gz", "has_sig": false, "md5_digest": "eeeb057236fdeb10d36ec190f0767fc6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5641, "upload_time": "2018-06-27T08:58:20", "url": "https://files.pythonhosted.org/packages/1f/ea/1195216f1eede510e1f992b8546a83487c5a834df4c179de74889ce12977/SanicRedis-0.0.9.tar.gz" } ], "0.1.0": [ { "comment_text": "", "digests": { "md5": "0f49e2ec0cecd054dc7497d82f3cff1e", "sha256": "4bebc257f52d0e0f33c89e047de09441314096034630378692e74a1ea80a213e" }, "downloads": -1, "filename": "SanicRedis-0.1.0.tar.gz", "has_sig": false, "md5_digest": "0f49e2ec0cecd054dc7497d82f3cff1e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5642, "upload_time": "2018-07-18T03:34:12", "url": "https://files.pythonhosted.org/packages/ab/d6/ef2e495bfee26f7f96601f17f3f7f8eb9b6f7df481738dbfe11c77f29a68/SanicRedis-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "2b1c1df456a0881c28da57cfd66b7bbb", "sha256": "4940d1824670d58845a7d4cec157a3bc7342641f797c2e1c593a654b3e1fb988" }, "downloads": -1, "filename": "SanicRedis-0.1.1.tar.gz", "has_sig": false, "md5_digest": "2b1c1df456a0881c28da57cfd66b7bbb", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5839, "upload_time": "2018-12-07T17:08:28", "url": "https://files.pythonhosted.org/packages/df/82/33fda05789ca537ca3a8b88c258f55b37010487d667345629cd2df166fda/SanicRedis-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "4c71f268ba340bebcd124275c6db9ca9", "sha256": "ac781facad5cba182d385af075f0a6b7b56e90a1cd1600a38d43ae4bd7ac2769" }, "downloads": -1, "filename": "SanicRedis-0.1.2.tar.gz", "has_sig": false, "md5_digest": "4c71f268ba340bebcd124275c6db9ca9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5858, "upload_time": "2018-12-07T17:20:04", "url": "https://files.pythonhosted.org/packages/6c/77/ccb6c5f6d9c8288fc4815487515af149902ddfb91d57629fa81c0f194aed/SanicRedis-0.1.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "4c71f268ba340bebcd124275c6db9ca9", "sha256": "ac781facad5cba182d385af075f0a6b7b56e90a1cd1600a38d43ae4bd7ac2769" }, "downloads": -1, "filename": "SanicRedis-0.1.2.tar.gz", "has_sig": false, "md5_digest": "4c71f268ba340bebcd124275c6db9ca9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5858, "upload_time": "2018-12-07T17:20:04", "url": "https://files.pythonhosted.org/packages/6c/77/ccb6c5f6d9c8288fc4815487515af149902ddfb91d57629fa81c0f194aed/SanicRedis-0.1.2.tar.gz" } ] }