{ "info": { "author": "@Robpol86", "author_email": "robpol86@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Environment :: Web Environment", "Framework :: Flask", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: MacOS :: MacOS X", "Operating System :: Microsoft :: Windows", "Operating System :: POSIX", "Operating System :: POSIX :: Linux", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Topic :: Software Development :: Libraries" ], "description": "Flask-Redis-Helper\n==================\n\nYet another Redis extension for Flask. ``Flask-Redis-Helper`` doesn't break PyCharm autocomplete/inspections and handles\nthe Flask application context the same way SQLAlchemy does.\n\n* Python 2.6, 2.7, 3.3, and 3.4 supported on Linux and OS X.\n* Python 2.7, 3.3, and 3.4 supported on Windows (both 32 and 64 bit versions of Python).\n\n.. image:: https://img.shields.io/appveyor/ci/Robpol86/Flask-Redis-Helper.svg?style=flat-square\n :target: https://ci.appveyor.com/project/Robpol86/Flask-Redis-Helper\n :alt: Build Status Windows\n\n.. image:: https://img.shields.io/travis/Robpol86/Flask-Redis-Helper/master.svg?style=flat-square\n :target: https://travis-ci.org/Robpol86/Flask-Redis-Helper\n :alt: Build Status\n\n.. image:: https://img.shields.io/codecov/c/github/Robpol86/Flask-Redis-Helper/master.svg?style=flat-square\n :target: https://codecov.io/github/Robpol86/Flask-Redis-Helper\n :alt: Coverage Status\n\n.. image:: https://img.shields.io/pypi/v/Flask-Redis-Helper.svg?style=flat-square\n :target: https://pypi.python.org/pypi/Flask-Redis-Helper/\n :alt: Latest Version\n\n.. image:: https://img.shields.io/pypi/dm/Flask-Redis-Helper.svg?style=flat-square\n :target: https://pypi.python.org/pypi/Flask-Redis-Helper/\n :alt: Downloads\n\nAttribution\n-----------\n\nInspired by `Flask-SQLAlchemy `_ and\n`Flask-And-Redis `_.\n\nSupported Platforms\n-------------------\n\n* OSX and Linux.\n* Python 2.6, 2.7, 3.3, 3.4\n* `Flask `_ 0.10.1\n* `Redis `_ 2.9.1\n* `Celery `_ 3.1.11\n\nQuickstart\n----------\n\nInstall:\n\n.. code:: bash\n\n pip install Flask-Redis-Helper\n\n\nExample:\n\n.. code:: python\n\n from flask import Flask\n from flask.ext.redis import Redis\n \n app = Flask(__name__)\n app.config['REDIS_URL'] = 'redis://localhost'\n redis = Redis(app)\n\n\nFactory Example\n---------------\n\n.. code:: python\n\n # extensions.py\n from flask.ext.redis import Redis\n \n redis = Redis()\n redis_cache = Redis()\n\n\n.. code:: python\n\n # application.py\n from flask import Flask\n from extensions import redis, redis_cache\n \n def create_app():\n app = Flask(__name__)\n app.config['REDIS_URL'] = 'redis://localhost/0'\n app.config['REDIS_CACHE_URL'] = 'redis://localhost/1'\n redis.init_app(app)\n redis_cache.init_app(app, config_prefix='REDIS_CACHE')\n return app\n\n\n.. code:: python\n\n # manage.py\n from application import create_app\n \n app = create_app()\n app.run()\n\n\nConfiguration\n-------------\n\n``Flask-Redis-Helper`` subclasses ``StrictRedis`` and adds the init_app() method for delayed initialization (for \napplications that instantiate extensions in a separate file, but run init_app() in the same file Flask() was \ninstantiated).\n\nThe following config settings are searched for in the Flask application's configuration dictionary:\n\n* ``REDIS_URL`` -- URL to Redis server. May be a network URL or Unix socket URL. Individual components may be overridden\n by settings below (like setting REDIS_DB). URLs must start with redis://, file://, or redis+socket:// (Celery\n compatibility). redis:// handles ambiguous URLs (like redis://localhost and redis://my_socket_file) by\n prioritizing network URL interpretations over socket URLs. Use the file:// or redis+socket:// URL schemes to\n force socket URL interpretations over network URLs.\n\n* ``REDIS_SOCKET`` -- UNIX socket file path. If specified, disables REDIS_HOST and REDIS_PORT settings.\n* ``REDIS_HOST`` -- the Redis server's hostname/IP. Default is localhost.\n* ``REDIS_PORT`` -- TCP port number. Default is 6379.\n* ``REDIS_PASSWORD`` -- password. Default is None.\n* ``REDIS_DB`` -- DB instance (e.g. 1). Must be an integer. Default is 0.\n\nChangelog\n---------\n\n1.0.0\n`````\n\n* Windows support.\n* Removed dependency on ``six``.\n\n0.1.3\n`````\n\n* Support trailing slashes.\n\n0.1.2\n`````\n\n* Minor code restructuring.\n\n0.1.1\n`````\n\n* Added Python 2.6 and 3.x support.\n\n0.1.0\n`````\n\n* Initial release.", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/Robpol86/Flask-Redis-Helper", "keywords": "flask celery redis", "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "Flask-Redis-Helper", "package_url": "https://pypi.org/project/Flask-Redis-Helper/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/Flask-Redis-Helper/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/Robpol86/Flask-Redis-Helper" }, "release_url": "https://pypi.org/project/Flask-Redis-Helper/1.0.0/", "requires_dist": null, "requires_python": null, "summary": "Redis support for Flask without breaking PyCharm inspections.", "version": "1.0.0" }, "last_serial": 1358388, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "d8a5e99cfb487acbd623d38294e50106", "sha256": "fb3b3a8dcf69673b3c9c0c647887ba4501af1115bfc8827ebd57dfca18c58948" }, "downloads": -1, "filename": "Flask-Redis-Helper-0.1.0.tar.gz", "has_sig": false, "md5_digest": "d8a5e99cfb487acbd623d38294e50106", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5544, "upload_time": "2014-06-02T02:14:55", "url": "https://files.pythonhosted.org/packages/eb/ed/398c7f40aac4a6fa286440ac0b75471bd89bf8b18ba708fc5ca1bc356756/Flask-Redis-Helper-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "6539ec71a4f3f189efe073004f34f8cd", "sha256": "dc313a82967f93dc945102df83ea567cba36774fda608f7ed34598d5169e7084" }, "downloads": -1, "filename": "Flask-Redis-Helper-0.1.1.tar.gz", "has_sig": false, "md5_digest": "6539ec71a4f3f189efe073004f34f8cd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5963, "upload_time": "2014-07-14T04:48:55", "url": "https://files.pythonhosted.org/packages/9f/f2/74bc19e628ad3276af38b951249968cb9a2280eed7acc84adcff9d79d220/Flask-Redis-Helper-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "019abee79fdd0fa39b90432e693c13dd", "sha256": "17879c113329f6bf4a7a92510165c402e9e5eef7310bf1eec9cf18d0396581d6" }, "downloads": -1, "filename": "Flask-Redis-Helper-0.1.2.tar.gz", "has_sig": false, "md5_digest": "019abee79fdd0fa39b90432e693c13dd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6475, "upload_time": "2014-08-11T03:28:12", "url": "https://files.pythonhosted.org/packages/76/84/9ec8b26d18b3012f6039d5b3d2697a9844fa5d3486048ac4ab4d7aaa8e30/Flask-Redis-Helper-0.1.2.tar.gz" } ], "0.1.3": [ { "comment_text": "", "digests": { "md5": "9a92f4d56afab4f24555eb16be4b194c", "sha256": "16a2b6c5421305a4fc454d50831a7e4d5b586ebbb00667503f9bed5fb682397b" }, "downloads": -1, "filename": "Flask-Redis-Helper-0.1.3.tar.gz", "has_sig": false, "md5_digest": "9a92f4d56afab4f24555eb16be4b194c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6517, "upload_time": "2014-08-25T04:05:34", "url": "https://files.pythonhosted.org/packages/60/58/d94ace6003b2a69db7a5e269045af81d3a06975ad3fd92fd162b7bc83a17/Flask-Redis-Helper-0.1.3.tar.gz" } ], "1.0.0": [ { "comment_text": "", "digests": { "md5": "8543ea5f8b2ed8811ddb0c0747e5364d", "sha256": "4d8299deb4e9625ee5f8a7122f2519cd446415474f9c04cbb09917f1b4775f3f" }, "downloads": -1, "filename": "Flask-Redis-Helper-1.0.0.tar.gz", "has_sig": false, "md5_digest": "8543ea5f8b2ed8811ddb0c0747e5364d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6820, "upload_time": "2014-12-23T07:21:40", "url": "https://files.pythonhosted.org/packages/46/63/4b7cc19f965c126d23db7bbecfebafe7ecfd08f47e3f8f9a4af3ef6d5c59/Flask-Redis-Helper-1.0.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "8543ea5f8b2ed8811ddb0c0747e5364d", "sha256": "4d8299deb4e9625ee5f8a7122f2519cd446415474f9c04cbb09917f1b4775f3f" }, "downloads": -1, "filename": "Flask-Redis-Helper-1.0.0.tar.gz", "has_sig": false, "md5_digest": "8543ea5f8b2ed8811ddb0c0747e5364d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6820, "upload_time": "2014-12-23T07:21:40", "url": "https://files.pythonhosted.org/packages/46/63/4b7cc19f965c126d23db7bbecfebafe7ecfd08f47e3f8f9a4af3ef6d5c59/Flask-Redis-Helper-1.0.0.tar.gz" } ] }