{
"info": {
"author": "Anton Efimenko",
"author_email": "anton@mailgunhq.com",
"bugtrack_url": null,
"classifiers": [],
"description": "Expiring Dict\n-------------\n\n.. image:: https://travis-ci.org/mailgun/expiringdict.svg?branch=master\n :target: https://travis-ci.org/mailgun/expiringdict\n\nexpiringdict is a Python caching library. The core of the library is ExpiringDict class which\nis an ordered dictionary with auto-expiring values for caching purposes. Expiration happens on\nany access, object is locked during cleanup from expired values. ExpiringDict can not store\nmore than `max_len` elements - the oldest will be deleted.\n\n**Note:** Iteration over dict and also keys() do not remove expired values!\n\nInstallation\n------------\n\nIf you wish to install from PyPi:\n\n.. code-block:: bash\n\n pip install expiringdict\n\nIf you wish to download the source and install from GitHub:\n\n.. code-block:: bash\n\n git clone git@github.com:mailgun/expiringdict.git\n python setup.py install\n\nor to install with test dependencies (`Nose `_, `Mock `_, `coverage `_) run from the directory above:\n\n.. code-block:: bash\n\n pip install -e expiringdict[test]\n\nTo run tests with coverage:\n\n.. code-block:: bash\n\n nosetests --with-coverage --cover-package=expiringdict\n\nUsage\n-----\n\nCreate a dictionary with capacity for 100 elements and elements expiring in 10 seconds:\n\n.. code-block:: py\n\n from expiringdict import ExpiringDict\n cache = ExpiringDict(max_len=100, max_age_seconds=10)\n\nput and get a value there:\n\n.. code-block:: py\n\n cache[\"key\"] = \"value\"\n cache.get(\"key\")\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/mailgun/expiringdict",
"keywords": "",
"license": "Apache 2",
"maintainer": "",
"maintainer_email": "",
"name": "expiringdict",
"package_url": "https://pypi.org/project/expiringdict/",
"platform": "",
"project_url": "https://pypi.org/project/expiringdict/",
"project_urls": {
"Homepage": "https://github.com/mailgun/expiringdict"
},
"release_url": "https://pypi.org/project/expiringdict/1.1.4/",
"requires_dist": null,
"requires_python": "",
"summary": "Dictionary with auto-expiring values for caching purposes",
"version": "1.1.4"
},
"last_serial": 3867542,
"releases": {
"1.0": [
{
"comment_text": "",
"digests": {
"md5": "8fd7f3c9f345364817527de4168ea3be",
"sha256": "a15b8407b6385e00756670eee45057eb13198bb52376413c727d6bf3c50fb37c"
},
"downloads": -1,
"filename": "expiringdict-1.0.tar.gz",
"has_sig": false,
"md5_digest": "8fd7f3c9f345364817527de4168ea3be",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 1955,
"upload_time": "2013-09-21T00:04:24",
"url": "https://files.pythonhosted.org/packages/07/ca/2200f4c0025bd060b902d8560063a31e4c2dfef227453d32ae4d612f2a76/expiringdict-1.0.tar.gz"
}
],
"1.1": [
{
"comment_text": "",
"digests": {
"md5": "ec55a28cefa1d9fec6d71659ace88d1f",
"sha256": "ee320c2376769928650e0e102f6172d9a7b89753444008975fd7622950245850"
},
"downloads": -1,
"filename": "expiringdict-1.1.tar.gz",
"has_sig": false,
"md5_digest": "ec55a28cefa1d9fec6d71659ace88d1f",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 2853,
"upload_time": "2014-02-20T02:23:10",
"url": "https://files.pythonhosted.org/packages/59/f2/408aa70981d6aa279f7121670b57cace7b04a5467acbd99c1756f2dcd58b/expiringdict-1.1.tar.gz"
}
],
"1.1.1": [
{
"comment_text": "",
"digests": {
"md5": "a1faeafbf38b872cbabe3b8217b92e56",
"sha256": "927db18005c834c690976409f3405ca48acb6a8178ce91bd68900c5352a089a4"
},
"downloads": -1,
"filename": "expiringdict-1.1.1.tar.gz",
"has_sig": false,
"md5_digest": "a1faeafbf38b872cbabe3b8217b92e56",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 6751,
"upload_time": "2014-03-06T00:10:35",
"url": "https://files.pythonhosted.org/packages/9c/47/6dfb23b47f39fe0ec22c4cdb04afd7641c3de51451dd5946ab430522c4fb/expiringdict-1.1.1.tar.gz"
}
],
"1.1.2": [
{
"comment_text": "",
"digests": {
"md5": "07b0aefdc437280b036f554ef60eeec8",
"sha256": "b4616606b909c570e7f69a882637ad59d34b8a1f50d64453c562f4fa96e3b300"
},
"downloads": -1,
"filename": "expiringdict-1.1.2.tar.gz",
"has_sig": false,
"md5_digest": "07b0aefdc437280b036f554ef60eeec8",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 6763,
"upload_time": "2014-03-07T21:42:37",
"url": "https://files.pythonhosted.org/packages/7c/0b/1d683fbc830023fff847f44ff43adcd2c93f9b53886b64f7fd110200adfc/expiringdict-1.1.2.tar.gz"
}
],
"1.1.3": [
{
"comment_text": "",
"digests": {
"md5": "094e1b6c57462abf73ae239780ec7593",
"sha256": "08bebdc5e008085e0612bd141d62f837c3f80b8c1880a95e0863100757b55b08"
},
"downloads": -1,
"filename": "expiringdict-1.1.3.tar.gz",
"has_sig": false,
"md5_digest": "094e1b6c57462abf73ae239780ec7593",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 6771,
"upload_time": "2014-08-14T00:43:51",
"url": "https://files.pythonhosted.org/packages/0f/19/c726a028dd48261c5b3c16dab80f424e8904b8dc484a12d7c314e12d18c5/expiringdict-1.1.3.tar.gz"
}
],
"1.1.4": [
{
"comment_text": "",
"digests": {
"md5": "2dacf06b2f48f99e7f6a5d7449eaa8d2",
"sha256": "9275c3f3aa6cabe394355b6454100eb1cdfe395c6b592c26603a2a0f9e3a0587"
},
"downloads": -1,
"filename": "expiringdict-1.1.4.tar.gz",
"has_sig": false,
"md5_digest": "2dacf06b2f48f99e7f6a5d7449eaa8d2",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 6900,
"upload_time": "2017-09-11T10:46:48",
"url": "https://files.pythonhosted.org/packages/fc/71/f3fe348cb85678c6cce5b96210efa099c2a1994ddfc3f37db5aedf8426de/expiringdict-1.1.4.tar.gz"
}
]
},
"urls": [
{
"comment_text": "",
"digests": {
"md5": "2dacf06b2f48f99e7f6a5d7449eaa8d2",
"sha256": "9275c3f3aa6cabe394355b6454100eb1cdfe395c6b592c26603a2a0f9e3a0587"
},
"downloads": -1,
"filename": "expiringdict-1.1.4.tar.gz",
"has_sig": false,
"md5_digest": "2dacf06b2f48f99e7f6a5d7449eaa8d2",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 6900,
"upload_time": "2017-09-11T10:46:48",
"url": "https://files.pythonhosted.org/packages/fc/71/f3fe348cb85678c6cce5b96210efa099c2a1994ddfc3f37db5aedf8426de/expiringdict-1.1.4.tar.gz"
}
]
}