{ "info": { "author": "rdj", "author_email": "fumble.to.victory@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "License :: OSI Approved :: Apache Software License", "Operating System :: Microsoft :: Windows", "Operating System :: POSIX", "Operating System :: Unix", "Programming Language :: Python", "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 :: Implementation :: CPython", "Programming Language :: Python :: Implementation :: PyPy", "Topic :: Utilities" ], "description": "python-cacheblob\n================\n\ncacheblob is a key-value interface for expiring items.\n\nInstallation\n------------\n\npip install python-cacheblob\n\nUsage\n-----\n\n.. code-block:: python\n\n import datetime\n from cacheblob import Cacheblob\n\n cache = Cacheblob.cache(handler='mongo')\n cache.store(index='index2', value='value2', duration=datetime.timedelta(days=1))\n for item in cache.fetch_all():\n print item\n\nUse Case\n--------\n\ncacheblob was designed for data sources that should age and expire. Using it should be as\nsimple as setting an expiry time (or duration) on your data. \n\nAs such, cacheblob avoids imposing too many design decisions upon the user beyond those\nnecessary for its expiry functionality. It decouples the interface and the storage\nmechanism by allowing arbitrary underlying storage systems, called *handlers* in\ncacheblob.\n\nCacheblob has an *item* concept, which is a key-value pair with an expiry time. Most\nhandlers except strings for values or will work with any values that can be converted to\nstrings. Not all handlers are necessarily subject to this limitation.\n\nCacheblob was designed to be lightweight by default, and to be flexible, by allowing the\nuser to choose their underlying storage model. Worried about concurrency? Use a handler\nthat allows concurrent access. You want your items as files on disk for easy access by\nprograms that expect them as such? Use a file-backed handler. Choose your own\nconsistency-availability-tolerance trade-off.\n\nThe current implemented handlers are:\n\n- handler: A lightweight wrapper that uses Python's in-memory storage\n- mongo: Store items in a Mongo database\n- sqlite: Store items in a SQLite database\n- plaintext: Store items as files in a folder on disk\n- gzip: Store items as gzip files in a folder on disk\n\nAuthors\n-------\n\nrdj - https://oddacious.github.io\n\n\nChangelog\n=========\n\n0.1.0 (2016-11-01)\n-----------------------------------------\n\n* First PyPi release\n\n0.1.0a1 (2016-09-10)\n-----------------------------------------\n\n* Prerelease", "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/oddacious/python-cacheblob", "keywords": null, "license": "Apache Software License", "maintainer": null, "maintainer_email": null, "name": "cacheblob", "package_url": "https://pypi.org/project/cacheblob/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/cacheblob/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/oddacious/python-cacheblob" }, "release_url": "https://pypi.org/project/cacheblob/0.1.0/", "requires_dist": null, "requires_python": null, "summary": "cacheblob is a key-value interface for expiring items.", "version": "0.1.0" }, "last_serial": 2762839, "releases": { "0.1.0": [], "0.1.0a1": [ { "comment_text": "", "digests": { "md5": "e5f04da4afb32c55c0877a099d05e767", "sha256": "c1295893f1ee3b7d91250f34d9f3a5e4470d906b2c341a1ef5dc7a114f65677c" }, "downloads": -1, "filename": "cacheblob-0.1.0a1.tar.gz", "has_sig": false, "md5_digest": "e5f04da4afb32c55c0877a099d05e767", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 324833, "upload_time": "2017-04-08T17:36:19", "url": "https://files.pythonhosted.org/packages/68/61/2d74a83d6d8c1a3af6a54b9b86c1065e3920d46f40d4dc095ead64734bd8/cacheblob-0.1.0a1.tar.gz" } ] }, "urls": [] }