{ "info": { "author": "Eugene Van den Bulke", "author_email": "eugene.vandenbulke@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Environment :: Web Environment", "Framework :: CherryPy", "Intended Audience :: Developers", "License :: Freely Distributable", "Operating System :: OS Independent", "Programming Language :: Python", "Topic :: Database", "Topic :: Internet :: WWW/HTTP :: Session" ], "description": "===============================================\nCherrys : a Redis backend for CherryPy sessions\n===============================================\n\nCherryPy_ kicks some serious arse in the 'I am just a HTTP framework' category!\nAs of version 3.2 it supports 4 types of storage for sessions by default:\n\n+ Ram\n+ File\n+ PostgreSQL_\n+ Memcached_\n\nRedis_ is growing in popularity as an alternative to Memcached_ (and is\nfully supported on dotCloud_!)\n\nInstallation\n============\n\nIf you are not using pip_ yet. Install it and while you are at it consider\nusing virtualenv_ too.\n\n::\n\n $ pip install cherrys\n\nredis-py_ and CherryPy_ are required dependencies hence will be installed if\nnecessary.\n\nWe recommend installing hiredis-py_ (a faster parser) as well.\n\n::\n\n $ pip install hiredis\n\nUsage (and abusage)\n===================\n\nTo tell CherryPy_ which backend to use, we need to specify the **storage_type**\nfor the **sessions** **tool**. You may want to read more about CherryPy_\nconfiguration_.\n\n::\n\n tools.sessions.storage_type : 'redis'\n\nBut CherryPy_ doesn't know Redis_. Hence the first thing we need to do is add\nthe cherrys **RedisSession** class to **cherrypy.lib.sessions**.\n\n::\n\n import cherrys\n cherrypy.lib.sessions.RedisSession = cherrys.RedisSession\n\nIt is that simple!\n\nConfig dictionary\n=================\n\nThere are 4 optional parameters you can set:\n\n+ **host** *[127.0.0.1]*\n+ **port** *[6379]*\n+ **db** *[0]*\n+ **password** *[None]*\n\nA full config dictionary to activate Redis_ backed sessions would look like\nthis.\n\n::\n\n config = {\n 'tools.sessions.on' : True,\n 'tools.sessions.storage_type' : 'redis',\n 'tools.sessions.host' : 'REDIS_HOST',\n 'tools.sessions.port' : 'REDIS_PORT',\n 'tools.sessions.db' : 'REDIS_DB',\n 'tools.sessions.password' : 'REDIS_PASSWORD'\n }\n\n.. _CherryPy: http://www.cherrypy.org\n.. _PostgreSQL: http://www.postgresql.org\n.. _Memcached: http://memcached.org\n.. _Redis: http://redis.io\n.. _dotCloud: http://www.dotcloud.com\n.. _pip: http://pip-installer.org\n.. _virtualenv: http://www.virtualenv.org\n.. _redis-py: https://github.com/andymccurdy/redis-py\n.. _hiredis-py: https://github.com/pietern/hiredis-py\n.. _configuration: http://docs.cherrypy.org/stable/concepts/config.html", "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/3kwa/cherrys", "keywords": null, "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "cherrys", "package_url": "https://pypi.org/project/cherrys/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/cherrys/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://github.com/3kwa/cherrys" }, "release_url": "https://pypi.org/project/cherrys/0.4/", "requires_dist": null, "requires_python": null, "summary": "Redis backend for CherryPy sessions", "version": "0.4" }, "last_serial": 751543, "releases": { "0.3": [ { "comment_text": "", "digests": { "md5": "a1c6f426a00b240279ff5d78c24afa2a", "sha256": "35d969ca596117eb95102c5379bb969a2688258b8a4c15057f15c129f84f0b3e" }, "downloads": -1, "filename": "cherrys-0.3.tar.gz", "has_sig": false, "md5_digest": "a1c6f426a00b240279ff5d78c24afa2a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3258, "upload_time": "2011-08-20T07:53:48", "url": "https://files.pythonhosted.org/packages/ec/5e/e16d79d31986bafc44d4e82c2e18dbdeb5241ca9a848561c90e162f9282e/cherrys-0.3.tar.gz" } ], "0.4": [ { "comment_text": "", "digests": { "md5": "ef8eee7684d646fec2933ac438465543", "sha256": "09180a9a9480634548ee8b984426e2bd393bdf84d20e06e9c7f75bda766b1609" }, "downloads": -1, "filename": "cherrys-0.4.tar.gz", "has_sig": false, "md5_digest": "ef8eee7684d646fec2933ac438465543", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3265, "upload_time": "2011-09-28T05:50:12", "url": "https://files.pythonhosted.org/packages/09/d4/e627b90de90e9fcaa9af0309be50a756f310e1a3bebd0e729c0849e78c3d/cherrys-0.4.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "ef8eee7684d646fec2933ac438465543", "sha256": "09180a9a9480634548ee8b984426e2bd393bdf84d20e06e9c7f75bda766b1609" }, "downloads": -1, "filename": "cherrys-0.4.tar.gz", "has_sig": false, "md5_digest": "ef8eee7684d646fec2933ac438465543", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3265, "upload_time": "2011-09-28T05:50:12", "url": "https://files.pythonhosted.org/packages/09/d4/e627b90de90e9fcaa9af0309be50a756f310e1a3bebd0e729c0849e78c3d/cherrys-0.4.tar.gz" } ] }