{ "info": { "author": "Martin Sucha", "author_email": "martin.sucha@exponea.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "License :: OSI Approved :: Apache Software License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "Redis-Sentinel-Url\n==================\n\n.. image:: https://travis-ci.org/exponea/redis-sentinel-url.svg\n :target: https://travis-ci.org/exponea/redis-sentinel-url\n :alt: Travis CI\n\nRedis-Sentinel-Url provides parser and connection factory for `redis://` and `redis+sentinel://` URLs (the latter\nbeing defined by this package).\n\n* Supports Python 2.7 and 3.3+\n* Licensed using Apache License 2.0\n\nInstallation\n------------\n\nInstall with pip::\n\n pip install Redis-Sentinel-Url\n\n\nURL scheme for connecting via Sentinel\n--------------------------------------\n\nThis package defines `redis+sentinel://` scheme for connecting to Redis via Sentinel::\n\n redis+sentinel://[:password@]host:port[,host2:port2,...][/service_name[/db]][?param1=value1[¶m2=value=2&...]]\n\n- You can specify multiple sentinel host:port pairs separated by comma.\n- If `service_name` is provided, it is used to create a default client\n- `service_name` and `db` can also be specified as URL parameters (URL parameters take precedence)\n- Client options (keyword arguments to `redis.StrictRedis`) are specified as URL parameters\n- Options for connecting to Sentinel (keyword arguments to `redis.sentinel.Sentinel`) are specified\n with `sentinel_` prefix\n- There is special `client_type` option to specify whether the default client should be `master` (the default) or\n `slave` service when connecting via Sentinel\n\nBasic usage\n-----------\n\nSupports schemes supported by `redis.StrictRedis.from_url` and also `redis+sentinel://` scheme described above:\n\n.. code-block:: python\n\n import redis_sentinel_url\n\n sentinel, client = redis_sentinel_url.connect('redis://localhost/0')\n # None, StrictRedis(...)\n\n sentinel, client = redis_sentinel_url.connect('rediss://localhost/0')\n # None, StrictRedis(...)\n\n sentinel, client = redis_sentinel_url.connect('unix://[:password]@/path/to/socket.sock?db=0')\n # None, StrictRedis(...)\n\n sentinel, client = redis_sentinel_url.connect('redis+sentinel://localhost:26379,otherhost:26479/mymaster/0')\n # Sentinel(...), StrictRedis(...)\n", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/exponea/redis-sentinel-url", "keywords": "", "license": "Apache 2.0", "maintainer": "", "maintainer_email": "", "name": "Redis-Sentinel-Url", "package_url": "https://pypi.org/project/Redis-Sentinel-Url/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/Redis-Sentinel-Url/", "project_urls": { "Homepage": "https://github.com/exponea/redis-sentinel-url" }, "release_url": "https://pypi.org/project/Redis-Sentinel-Url/1.0.1/", "requires_dist": [ "redis (>=2.10.3)" ], "requires_python": "", "summary": "A factory for redis connection that supports using Redis Sentinel", "version": "1.0.1" }, "last_serial": 3471696, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "663bcba0896cefce629f73c0a89b20fd", "sha256": "2b5e55571007d04be4f74eadd5278c83c070fb1489fa517b18f3ff9e94b91695" }, "downloads": -1, "filename": "Redis_Sentinel_Url-1.0.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "663bcba0896cefce629f73c0a89b20fd", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 4664, "upload_time": "2016-08-23T13:43:59", "url": "https://files.pythonhosted.org/packages/a6/11/1fe0438baef27567ae38e83321670076a2da545960cc64348df6a14c40bb/Redis_Sentinel_Url-1.0.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "359a25201f510ee28fcb8a249ea69b40", "sha256": "5b16be7d0674fded714e6fbe18ca3a4dc2d41616b6247ca4a0ef0dde7058d311" }, "downloads": -1, "filename": "Redis-Sentinel-Url-1.0.0.tar.gz", "has_sig": false, "md5_digest": "359a25201f510ee28fcb8a249ea69b40", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7580, "upload_time": "2016-08-23T13:44:02", "url": "https://files.pythonhosted.org/packages/f8/26/0f0c12cd7a50c38b620864649ba66085516075071487d30e182f59b64908/Redis-Sentinel-Url-1.0.0.tar.gz" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "48364094a2601654fe54bd250d88b042", "sha256": "c6991e2000c5c7a5e2b95eb2d62fd5b0a6b02a59554caf0f9f79d18e152d9663" }, "downloads": -1, "filename": "Redis_Sentinel_Url-1.0.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "48364094a2601654fe54bd250d88b042", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 4685, "upload_time": "2017-04-05T07:47:53", "url": "https://files.pythonhosted.org/packages/40/35/20f997f367c87ef1e6ebf418af7c2450cb5da860d066d7229226031534ad/Redis_Sentinel_Url-1.0.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "8cbaed61b13b1b01d79b31881473eac3", "sha256": "ec1854ab9379a28789423c3cd4082739fb69c7b4b11bb50ae7858697c131b13e" }, "downloads": -1, "filename": "Redis-Sentinel-Url-1.0.1.tar.gz", "has_sig": false, "md5_digest": "8cbaed61b13b1b01d79b31881473eac3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7599, "upload_time": "2017-04-05T07:47:55", "url": "https://files.pythonhosted.org/packages/cc/e3/68de4c8aacbd9952667d7d0f5af55b873553a09a6227ac5b7f7c622610c9/Redis-Sentinel-Url-1.0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "48364094a2601654fe54bd250d88b042", "sha256": "c6991e2000c5c7a5e2b95eb2d62fd5b0a6b02a59554caf0f9f79d18e152d9663" }, "downloads": -1, "filename": "Redis_Sentinel_Url-1.0.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "48364094a2601654fe54bd250d88b042", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 4685, "upload_time": "2017-04-05T07:47:53", "url": "https://files.pythonhosted.org/packages/40/35/20f997f367c87ef1e6ebf418af7c2450cb5da860d066d7229226031534ad/Redis_Sentinel_Url-1.0.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "8cbaed61b13b1b01d79b31881473eac3", "sha256": "ec1854ab9379a28789423c3cd4082739fb69c7b4b11bb50ae7858697c131b13e" }, "downloads": -1, "filename": "Redis-Sentinel-Url-1.0.1.tar.gz", "has_sig": false, "md5_digest": "8cbaed61b13b1b01d79b31881473eac3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7599, "upload_time": "2017-04-05T07:47:55", "url": "https://files.pythonhosted.org/packages/cc/e3/68de4c8aacbd9952667d7d0f5af55b873553a09a6227ac5b7f7c622610c9/Redis-Sentinel-Url-1.0.1.tar.gz" } ] }