{ "info": { "author": "Benjamin Chiang", "author_email": "aroy@alum.mit.edu", "bugtrack_url": null, "classifiers": [ "Development Status :: 2 - Pre-Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Natural Language :: English", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5" ], "description": "===============================\r\nDB Cache\r\n===============================\r\n\r\n\r\n.. image:: https://img.shields.io/pypi/v/db_cache.svg\r\n :target: https://pypi.python.org/pypi/db_cache\r\n\r\n.. image:: https://img.shields.io/travis/bchiang2/db_cache.svg\r\n :target: https://travis-ci.org/bchiang2/db_cache\r\n\r\n.. image:: https://readthedocs.org/projects/db-cache/badge/?version=latest\r\n :target: https://db-cache.readthedocs.io/en/latest/?badge=latest\r\n :alt: Documentation Status\r\n\r\n.. image:: https://pyup.io/repos/github/bchiang2/db_cache/shield.svg\r\n :target: https://pyup.io/repos/github/bchiang2/db_cache/\r\n :alt: Updates\r\n\r\n\r\ndatabase caching for dynamic programming\r\n\r\n\r\n* Free software: MIT license\r\n* Documentation: https://db-cache.readthedocs.io.\r\n\r\nIntro\r\n--------\r\n\r\n\r\nGuide\r\n--------\r\nTL;DR\r\n\r\n .. code-block:: python\r\n\r\n import db_cache\r\n\r\n # Instantiate cache object that connects to PostgreSQL with provided credential\r\n cache = db_cache.Cache(database=\"db_name\", user=\"admin\", password=\"12345\", host=\"localhost\")\r\n\r\n # Create decorater that cache function result using provided table name\r\n @cache.use_table(\"some_table_name\")\r\n def some_expensive_function(large_int):\r\n prime1, prime2 = factoring(large_int)\r\n return (prime1, prime2)\r\n\r\n # Return cached value if possible, otherwise compute and cache result. \r\n some_expensive_function(121103)\r\n\r\n\r\nFeatures\r\n--------\r\n\r\n* TODO\r\n\r\nCredits\r\n---------\r\n\r\nThis package was created with Cookiecutter_ and the `audreyr/cookiecutter-pypackage`_ project template.\r\n\r\n.. _Cookiecutter: https://github.com/audreyr/cookiecutter\r\n.. _`audreyr/cookiecutter-pypackage`: https://github.com/audreyr/cookiecutter-pypackage\r\n\r\n\r\n\r\n=======\r\nHistory\r\n=======\r\n\r\n0.1.0 (2016-11-04)\r\n------------------\r\n\r\n* First release on PyPI.\r\n\r\n\r\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/bchiang2/db_cache", "keywords": "db_cache", "license": "MIT license", "maintainer": "", "maintainer_email": "", "name": "db_cache", "package_url": "https://pypi.org/project/db_cache/", "platform": "", "project_url": "https://pypi.org/project/db_cache/", "project_urls": { "Homepage": "https://github.com/bchiang2/db_cache" }, "release_url": "https://pypi.org/project/db_cache/0.1.2/", "requires_dist": [ "psycopg2" ], "requires_python": "", "summary": "database caching for dynamic programming", "version": "0.1.2" }, "last_serial": 2461245, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "a6e69454cb24d40c1a48d01795c0f694", "sha256": "33341bc3c8c0a9e967d7c26a590bc4c9fccf9063902aaf2ad63dab2efe40956a" }, "downloads": -1, "filename": "db_cache-0.1.0-py2.7.egg", "has_sig": false, "md5_digest": "a6e69454cb24d40c1a48d01795c0f694", "packagetype": "bdist_egg", "python_version": "2.7", "requires_python": null, "size": 4279, "upload_time": "2016-11-15T06:23:07", "url": "https://files.pythonhosted.org/packages/ed/9e/a5d175527c564106f496779b4d4e436fdb84019fd9afdf9dfeae5b41f78f/db_cache-0.1.0-py2.7.egg" }, { "comment_text": "", "digests": { "md5": "8c11d8719f79866e3a92204c76d728eb", "sha256": "f3aa752b3598d13be1febb05daa9eb2eccfcef802f09a1b9d7256478cd3e0b58" }, "downloads": -1, "filename": "db_cache-0.1.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "8c11d8719f79866e3a92204c76d728eb", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 4723, "upload_time": "2016-11-15T06:23:05", "url": "https://files.pythonhosted.org/packages/68/8a/64aacfeee9ed239aee7ce11bb69eae025a30176dde66a85076501167e491/db_cache-0.1.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "604fe1fd95d4a4dffba3e2b583823d6d", "sha256": "d7086efff87ee4b95c3d2d57d2e1eac8fd8de44f94f712fc38786f57ab63bb5b" }, "downloads": -1, "filename": "db_cache-0.1.0.zip", "has_sig": false, "md5_digest": "604fe1fd95d4a4dffba3e2b583823d6d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 17835, "upload_time": "2016-11-11T01:02:45", "url": "https://files.pythonhosted.org/packages/28/95/1644679e93b1519080361b16bff9c01d361561cdd38fec71c3d7d60a303c/db_cache-0.1.0.zip" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "7b4487667e15882796b70f9e2d2631c7", "sha256": "42dc6743e71aa483068cb6f1a33b3d3eb7d685e72940d0b536d25aa66d9847f3" }, "downloads": -1, "filename": "db_cache-0.1.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "7b4487667e15882796b70f9e2d2631c7", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 4728, "upload_time": "2016-11-15T06:24:54", "url": "https://files.pythonhosted.org/packages/fe/16/627a9966d06795dc9a9c05706b3b8c154e3ba291dad4d267101ba0f3e621/db_cache-0.1.1-py2.py3-none-any.whl" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "b2e4d67502bc5265c67243f8d2bd2128", "sha256": "9eeacc849f378d0cbe36200ccb813de4bbcc6ef808f47f5e5d4d310aec84f56f" }, "downloads": -1, "filename": "db_cache-0.1.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "b2e4d67502bc5265c67243f8d2bd2128", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 5326, "upload_time": "2016-11-15T06:26:42", "url": "https://files.pythonhosted.org/packages/30/a7/44c5f0e231427400cf8f904579cdc9ce8974af84de9bab13d0ccd0df36c9/db_cache-0.1.2-py2.py3-none-any.whl" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "b2e4d67502bc5265c67243f8d2bd2128", "sha256": "9eeacc849f378d0cbe36200ccb813de4bbcc6ef808f47f5e5d4d310aec84f56f" }, "downloads": -1, "filename": "db_cache-0.1.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "b2e4d67502bc5265c67243f8d2bd2128", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 5326, "upload_time": "2016-11-15T06:26:42", "url": "https://files.pythonhosted.org/packages/30/a7/44c5f0e231427400cf8f904579cdc9ce8974af84de9bab13d0ccd0df36c9/db_cache-0.1.2-py2.py3-none-any.whl" } ] }