{ "info": { "author": "Marcus Ekelund", "author_email": "marcus.ekelund@gmail.com", "bugtrack_url": null, "classifiers": [], "description": "pyopenkeyval\n============\n\n`OpenKeyval.org `__ is a service for easily\nstoring and retrieving key/value pairs via HTTP. *pyopenkeyval* is a\nPython interface to this service, presented as a dict-like object that\naccesses data on OpenKeyval.\n\nInstalling\n----------\n\n::\n\n $ sudo python setup.py install\n\nExamples\n--------\n\nNormal usage\n~~~~~~~~~~~~\n\n::\n\n from pyopenkeyval import pyopenkeyval\n okv = pyopenkeyval()\n okv['example'] = 'Hello, online key/value storage!'\n print okv['example']\n\nIf you need the result from storing a value, use the ``store()`` method\ninstead:\n\n::\n\n result = okv.store('example', 'Hello, online key/value storage!')\n print result['read_only_key']\n\nTo check if a key has a value, use the ``in`` keyword. Note that this\nwill also cache the value if caching is activated.\n\n::\n\n if 'example' in okv:\n ...\n\nDeleting keys\n~~~~~~~~~~~~~\n\nTo delete a key, either set its value to '' or use the ``del`` keyword:\n\n::\n\n del okv['example']\n\nCaching\n~~~~~~~\n\nIf you want to cache retrieved values locally, set the ``cache_time``\nargument when constructing the ``pyopenkeyval`` object. This specifies\nthe number of seconds to cache individual values.\n\n::\n\n okv = pyopenkeyval(cache_time=60)\n\nTo clear the cache completely at any time, call the ``clear_cache()``\nmethod.\n\nSSL support\n~~~~~~~~~~~\n\nOpenKeyval.org also supports SSL over HTTPS for more secure transfer of\ndata. To use SSL, set the ``ssl`` argument to True.\n\n::\n\n okv = pyopenkeyval(ssl=True)\n\nNote that the HTTP och HTTPS versions of OpenKeyval.org are completely\nseparate. Values set in one can't be fetched from the other.\n\nPython 3\n--------\n\n*pyopenkeyval* is since version 0.3 compatible with Python 3. It must,\nhowever, either be installed using ``setup.py`` (as described above)\nbefore use, or manually be converted using the ``2to3`` tool.\n\nAlso note that values fetched will be returned as ``bytes``. To use\nthese as strings, call the ``.decode()`` method on them first. When\nsetting values, either ``str`` or ``bytes`` can be used.\n\nRequirements\n------------\n\nPython 2.5 and lower require *simplejson* to be installed.", "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/marcuse/pyopenkeyval", "keywords": null, "license": "Public domain", "maintainer": null, "maintainer_email": null, "name": "pyopenkeyval", "package_url": "https://pypi.org/project/pyopenkeyval/", "platform": "any", "project_url": "https://pypi.org/project/pyopenkeyval/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://github.com/marcuse/pyopenkeyval" }, "release_url": "https://pypi.org/project/pyopenkeyval/0.4/", "requires_dist": null, "requires_python": null, "summary": "pyopenkeyval: A simple interface to OpenKeyval.org", "version": "0.4" }, "last_serial": 952028, "releases": { "0.4": [ { "comment_text": "", "digests": { "md5": "20add212b090d7046b29ce92c70fe46c", "sha256": "a5a06e852fed562e49fc8c2d6bbfc1a923aa3518f19c4771d0c8f2f6e18acd0f" }, "downloads": -1, "filename": "pyopenkeyval-0.4.tar.gz", "has_sig": false, "md5_digest": "20add212b090d7046b29ce92c70fe46c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1562, "upload_time": "2013-12-17T17:10:47", "url": "https://files.pythonhosted.org/packages/30/6a/4db7aa0fe429aa5145a6e08fec0d5810c8cfc53b8afcdccb941fded4f993/pyopenkeyval-0.4.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "20add212b090d7046b29ce92c70fe46c", "sha256": "a5a06e852fed562e49fc8c2d6bbfc1a923aa3518f19c4771d0c8f2f6e18acd0f" }, "downloads": -1, "filename": "pyopenkeyval-0.4.tar.gz", "has_sig": false, "md5_digest": "20add212b090d7046b29ce92c70fe46c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1562, "upload_time": "2013-12-17T17:10:47", "url": "https://files.pythonhosted.org/packages/30/6a/4db7aa0fe429aa5145a6e08fec0d5810c8cfc53b8afcdccb941fded4f993/pyopenkeyval-0.4.tar.gz" } ] }