{ "info": { "author": "Numan Sachwani", "author_email": "numan856@gmail.com", "bugtrack_url": null, "classifiers": [ "Intended Audience :: Developers", "Intended Audience :: System Administrators", "Programming Language :: Python", "Topic :: Software Development", "Topic :: Utilities" ], "description": "Sandsnake\n=========\n.. image:: https://secure.travis-ci.org/numan/sandsnake.png?branch=master\n :target: https://secure.travis-ci.org/numan/sandsnake\n\nIntroduction\n~~~~~~~~~~~~\n**Sandsnake** is a sorted index implemented in python and uses ``redis`` as a backend.\nIt was originally implemented to be used as an indexing system for `Sunspear `_.\n\nRequirements\n------------\n\nRequired\n~~~~~~~~\n\nRequirements **should** be handled by setuptools, but if they are not, you will need the following Python packages:\n\n* nydus\n* redis\n* dateutil\n\nOptional\n~~~~~~~~\n\n* hiredis\n\n\nsandsnake.create_sandsnake_backend\n----------------------------------\n\nCreates an sandsnake object that allows to to store and retrieve indexes::\n\n >>> from sandsnake import create_sandsnake_backend\n >>>\n >>> sandsnake = create_sandsnake_backend({\n >>> 'backend': 'sandsnake.backends.redis.Redis',\n >>> 'settings': {\n >>> 'defaults': {\n >>> 'host': 'localhost',\n >>> 'port': 6379,\n >>> 'db': 0,\n >>> },\n >>> 'hosts': [{'db': 0}, {'db': 1}, {'host': 'redis.example.org'}]\n >>> },\n >>> })\n\nInternally, the ``Redis`` sandsnake backend uses ``nydus`` to distribute your indexes data over your cluster of redis instances.\n\nThere are two required arguements:\n\n* ``backend``: full path to the backend class, which should extend sandsnake.backends.base.BaseSandsnakeBackend\n* ``settings``: settings required to initialize the backend. For the ``Redis`` backend, this is a list of hosts in your redis cluster.\n\n\nExample Usage\n--------------\n\nRedis\n~~~~~\n\n::\n\n from sandsnake import create_sandsnake_backend\n import datetime\n\n sandsnake = create_sandsnake_backend({\n \"backend\": \"sandsnake.backends.redis.Redis\",\n \"settings\": {\n \"hosts\": [{\"db\": 5}]\n },\n })\n\n #add a value of \"abc\" to the ``index`` for an ``object``\n sandsnake.add(\"user:1\", \"homefeed\", \"abc\")\n sandsnake.add(\"user:1\", [\"homefeed\", \"recogfeed\"], \"abc\")", "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/numan/sandsnake", "keywords": null, "license": "Apache License 2.0", "maintainer": null, "maintainer_email": null, "name": "sandsnake", "package_url": "https://pypi.org/project/sandsnake/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/sandsnake/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/numan/sandsnake" }, "release_url": "https://pypi.org/project/sandsnake/0.1.3/", "requires_dist": null, "requires_python": null, "summary": "Sorted indexes backed by redis.", "version": "0.1.3" }, "last_serial": 1520400, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "8fed90bfec6fa741f6d8e26a227a5fce", "sha256": "a300c0a7b7f179ad5dc99f9eb5156fcf479d57976499c1d11b78c442a96cf486" }, "downloads": -1, "filename": "sandsnake-0.1.0.tar.gz", "has_sig": false, "md5_digest": "8fed90bfec6fa741f6d8e26a227a5fce", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14964, "upload_time": "2013-04-27T22:44:11", "url": "https://files.pythonhosted.org/packages/a0/e6/0bfe60dfd4acc8889a53a2f700c091ea2aff28349eec8a955de87c178768/sandsnake-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "b31b9aab73f66cb19c71e8113e835e64", "sha256": "8a7ee86d66b75830cc22cbb445c0ed266d00af2edeb49f4444ac541d6f21a6c6" }, "downloads": -1, "filename": "sandsnake-0.1.1.tar.gz", "has_sig": false, "md5_digest": "b31b9aab73f66cb19c71e8113e835e64", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14950, "upload_time": "2013-04-29T14:02:09", "url": "https://files.pythonhosted.org/packages/22/d6/b0d4d0f28ba925fa8bf8d41cb55d837550f42b03b4824d47bea931863cb5/sandsnake-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "7bb3245a214115dc0d95e2cbdfa9d112", "sha256": "4b2010e72663ba9b652e808640c7fec366d7e4bf4fb2e89ce6fd3a2758c6652e" }, "downloads": -1, "filename": "sandsnake-0.1.2.tar.gz", "has_sig": false, "md5_digest": "7bb3245a214115dc0d95e2cbdfa9d112", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14957, "upload_time": "2013-05-10T18:10:58", "url": "https://files.pythonhosted.org/packages/4e/20/f6138e357ff598d6834c3f4dc9cd5c1d1f0bbc398be81aaa9f398aad181c/sandsnake-0.1.2.tar.gz" } ], "0.1.3": [ { "comment_text": "", "digests": { "md5": "5f9d67630b971d905e23347dde3faae8", "sha256": "b78698a6efa6ea99d86e83c07292422e46ff41e89da23daa1b861638edc769f5" }, "downloads": -1, "filename": "sandsnake-0.1.3.tar.gz", "has_sig": false, "md5_digest": "5f9d67630b971d905e23347dde3faae8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14958, "upload_time": "2015-04-25T01:03:54", "url": "https://files.pythonhosted.org/packages/99/90/34e701e37679ab9c6d0c955058249f47971e8751b4af4ffc1026036f9af2/sandsnake-0.1.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "5f9d67630b971d905e23347dde3faae8", "sha256": "b78698a6efa6ea99d86e83c07292422e46ff41e89da23daa1b861638edc769f5" }, "downloads": -1, "filename": "sandsnake-0.1.3.tar.gz", "has_sig": false, "md5_digest": "5f9d67630b971d905e23347dde3faae8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14958, "upload_time": "2015-04-25T01:03:54", "url": "https://files.pythonhosted.org/packages/99/90/34e701e37679ab9c6d0c955058249f47971e8751b4af4ffc1026036f9af2/sandsnake-0.1.3.tar.gz" } ] }