{ "info": { "author": "Brett Langdon", "author_email": "brett@blangdon.com", "bugtrack_url": null, "classifiers": [ "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Programming Language :: Python", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Topic :: Database" ], "description": "Riakcached\r\n==========\r\n\r\n|Build Status| |Coverage Status| |PyPI version|\r\n\r\nA Memcached like interface to the Riak HTTP Client. `Read The\r\nDocs `__\r\n\r\nInstalling\r\n----------\r\n\r\nFrom PyPI\r\n~~~~~~~~~\r\n\r\n.. code:: bash\r\n\r\n pip install riakcached\r\n\r\nFrom Git\r\n~~~~~~~~\r\n\r\n.. code:: bash\r\n\r\n git clone git://github.com/brettlangdon/riakcached.git\r\n cd ./riakcached\r\n pip install -r requirements.txt\r\n python setup.py install\r\n\r\nUsage\r\n-----\r\n\r\nBasic Usage\r\n~~~~~~~~~~~\r\n\r\n.. code:: python\r\n\r\n from riakcached.clients import RiakClient\r\n\r\n client = RiakClient(\"my_bucket\")\r\n\r\n client.set(\"hello\", \"world\")\r\n print client.get(\"hello\")\r\n # 'hello'\r\n\r\n client.delete(\"hello\")\r\n print client.get(\"hello\")\r\n # None\r\n\r\n values = {\r\n \"hello\": \"world\",\r\n \"foo\": \"bar\",\r\n }\r\n client.set_many(values)\r\n\r\n keys = [\"hello\", \"foo\", \"test\"]\r\n print client.get_many(keys)\r\n # {'foo': 'bar', 'hello': 'world'}\r\n\r\n client.close()\r\n\r\nConnection Pool Settings\r\n~~~~~~~~~~~~~~~~~~~~~~~~\r\n\r\n.. code:: bash\r\n\r\n from riakcached.clients import RiakClient\r\n from riakcached.pools import Urllib3Pool\r\n\r\n pool = Urllib3Pool(base_url=\"http://my-host.com:8098/\", timeout=1)\r\n client = RiakClient(\"my_bucket\", pool=pool)\r\n\r\n client.get(\"foo\")\r\n\r\nCustom Connection Pool\r\n~~~~~~~~~~~~~~~~~~~~~~\r\n\r\n.. code:: bash\r\n\r\n from riakcached.clients import RiakClient\r\n from riakcache.pools import Pool\r\n\r\n class CustomPool(Pool):\r\n __slots__ = [\"connection\"]\r\n\r\n def connect(self):\r\n self.connection = make_a_connection()\r\n\r\n def close(self):\r\n if self.connection:\r\n close_connection(self.connection)\r\n\r\n def request(self, method, url, body=None, headers=None):\r\n results = make_request(self.connection, method, url, body, headers, timeout=self.timeout)\r\n return results.status, results.data, results.headers\r\n\r\n\r\n custom_pool = CustomPool(base_url=\"http://my-host.com:8098\", timeout=1)\r\n client = RiakClient(\"my_bucket\", pool=pool)\r\n\r\nThreaded Client\r\n~~~~~~~~~~~~~~~\r\n\r\nThe exists a ``riakcached.clients.ThreadedRiakClient`` which inherits\r\nfrom ``riakcached.clients.RiakClient`` and which uses threading to try\r\nto parallelize calls to ``get_many``, ``set_many`` and ``delete_many``.\r\n\r\nDocumentation\r\n-------------\r\n\r\nThe documentation can be found in the ``/docs`` directory in this\r\nrepository and should be fairly complete for the codebase.\r\n\r\nBuilding Documentation\r\n~~~~~~~~~~~~~~~~~~~~~~\r\n\r\n.. code:: bash\r\n\r\n git clone git://github.com/brettlangdon/riakcached.git\r\n cd riakcached\r\n pip install -r docs-requirements.txt\r\n cd ./docs\r\n make html\r\n\r\n.. |Build Status| image:: https://travis-ci.org/brettlangdon/riakcached.png?branch=master\r\n :target: https://travis-ci.org/brettlangdon/riakcached\r\n.. |Coverage Status| image:: https://coveralls.io/repos/brettlangdon/riakcached/badge.png?branch=master\r\n :target: https://coveralls.io/r/brettlangdon/riakcached?branch=master\r\n.. |PyPI version| image:: https://badge.fury.io/py/riakcached.png\r\n :target: http://badge.fury.io/py/riakcached", "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/brettlangdon/riakcached", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "riakcached", "package_url": "https://pypi.org/project/riakcached/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/riakcached/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/brettlangdon/riakcached" }, "release_url": "https://pypi.org/project/riakcached/0.1.0/", "requires_dist": null, "requires_python": null, "summary": "A Memcached like interface to Riak", "version": "0.1.0" }, "last_serial": 865224, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "2cd55cff146af6af4f68f1ced6d051d9", "sha256": "a6cbe0a770bb7d58b8c3abdf6ba7e0e0df1da76010c7611081017b63a0a2bbd6" }, "downloads": -1, "filename": "riakcached-0.1.0.tar.gz", "has_sig": false, "md5_digest": "2cd55cff146af6af4f68f1ced6d051d9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6931, "upload_time": "2013-09-13T20:01:45", "url": "https://files.pythonhosted.org/packages/7b/8a/a9ca27fd8a118861a67bc80adfa3f63fe7650a4c950039662acb0e3bd147/riakcached-0.1.0.tar.gz" }, { "comment_text": "", "digests": { "md5": "27e480fc7279cfe50e674f0b3b5975b5", "sha256": "fe8585f384afa1878d616da1b7d8ef8f4eac27e49a1025b01a4e1b6e2fe5b9fb" }, "downloads": -1, "filename": "riakcached-0.1.0.zip", "has_sig": false, "md5_digest": "27e480fc7279cfe50e674f0b3b5975b5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10740, "upload_time": "2013-09-13T20:01:47", "url": "https://files.pythonhosted.org/packages/3d/b2/b76c74e87f419a7708de2af76dd7c37dfec006b40cd82b0feba6862b4040/riakcached-0.1.0.zip" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "2cd55cff146af6af4f68f1ced6d051d9", "sha256": "a6cbe0a770bb7d58b8c3abdf6ba7e0e0df1da76010c7611081017b63a0a2bbd6" }, "downloads": -1, "filename": "riakcached-0.1.0.tar.gz", "has_sig": false, "md5_digest": "2cd55cff146af6af4f68f1ced6d051d9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6931, "upload_time": "2013-09-13T20:01:45", "url": "https://files.pythonhosted.org/packages/7b/8a/a9ca27fd8a118861a67bc80adfa3f63fe7650a4c950039662acb0e3bd147/riakcached-0.1.0.tar.gz" }, { "comment_text": "", "digests": { "md5": "27e480fc7279cfe50e674f0b3b5975b5", "sha256": "fe8585f384afa1878d616da1b7d8ef8f4eac27e49a1025b01a4e1b6e2fe5b9fb" }, "downloads": -1, "filename": "riakcached-0.1.0.zip", "has_sig": false, "md5_digest": "27e480fc7279cfe50e674f0b3b5975b5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10740, "upload_time": "2013-09-13T20:01:47", "url": "https://files.pythonhosted.org/packages/3d/b2/b76c74e87f419a7708de2af76dd7c37dfec006b40cd82b0feba6862b4040/riakcached-0.1.0.zip" } ] }