fcache


Namefcache JSON
Version 0.5.2 PyPI version JSON
download
home_pageNone
Summarya dictionary-like, file-based cache module for Python
upload_time2024-02-23 00:38:52
maintainerNone
docs_urlNone
authorNone
requires_python>=3.7
licenseNone
keywords cache file serialize
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            fcache
======

.. image:: https://badge.fury.io/py/fcache.svg
    :target: https://pypi.org/project/fcache

.. image:: https://github.com/tsroten/fcache/actions/workflows/ci.yml/badge.svg
    :target: https://github.com/tsroten/fcache/actions/workflows/ci.yml

fcache is a dictionary-like, file-based cache module for Python. It's simple
to use, has an optional write buffer, and is
`Shelf <http://docs.python.org/3/library/shelve.html#shelve.Shelf>`_-compatible.

.. code:: python

    >>> from fcache.cache import FileCache
    >>> mycache = FileCache('myapp')
    >>> mycache['foo'] = [1, 2, 3, 4, 5]
    >>> mycache['foo']
    [1, 2, 3, 4, 5]
    >>> mycache['bar'] = 'value'
    >>> list(mycache)
    ['foo', 'bar']
    >>> del mycache['foo']
    >>> mycache['foo']
        ...
        KeyError: 'foo'

.. code:: python

   with FileCache('myapp') as mycache:
       mycache['foo'] = [1, 2, 3, 4, 5]

Install
-------

To install fcache, use pip:

.. code:: bash

    $ pip install fcache

Documentation
-------------

`fcache's documentation <https://tsroten.github.io/fcache/>`_ contains an introduction along with an API overview. For more information on how to get started with fcache, be sure to read the documentation.

Bug/Issues Tracker
------------------

fcache uses its `GitHub Issues page <https://github.com/tsroten/fcache/issues>`_ to track bugs, feature requests, and support questions.

License
-------

fcache is released under the OSI-approved `MIT License <http://opensource.org/licenses/MIT>`_. See the file LICENSE.txt for more information.

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "fcache",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.7",
    "maintainer_email": null,
    "keywords": "cache,file,serialize",
    "author": null,
    "author_email": "Thomas Roten <thomas@roten.us>",
    "download_url": "https://files.pythonhosted.org/packages/55/ff/b50ff1df7c943d2a35c58d17cc987e46ca086875e25264616f20dd1aefa6/fcache-0.5.2.tar.gz",
    "platform": null,
    "description": "fcache\n======\n\n.. image:: https://badge.fury.io/py/fcache.svg\n    :target: https://pypi.org/project/fcache\n\n.. image:: https://github.com/tsroten/fcache/actions/workflows/ci.yml/badge.svg\n    :target: https://github.com/tsroten/fcache/actions/workflows/ci.yml\n\nfcache is a dictionary-like, file-based cache module for Python. It's simple\nto use, has an optional write buffer, and is\n`Shelf <http://docs.python.org/3/library/shelve.html#shelve.Shelf>`_-compatible.\n\n.. code:: python\n\n    >>> from fcache.cache import FileCache\n    >>> mycache = FileCache('myapp')\n    >>> mycache['foo'] = [1, 2, 3, 4, 5]\n    >>> mycache['foo']\n    [1, 2, 3, 4, 5]\n    >>> mycache['bar'] = 'value'\n    >>> list(mycache)\n    ['foo', 'bar']\n    >>> del mycache['foo']\n    >>> mycache['foo']\n        ...\n        KeyError: 'foo'\n\n.. code:: python\n\n   with FileCache('myapp') as mycache:\n       mycache['foo'] = [1, 2, 3, 4, 5]\n\nInstall\n-------\n\nTo install fcache, use pip:\n\n.. code:: bash\n\n    $ pip install fcache\n\nDocumentation\n-------------\n\n`fcache's documentation <https://tsroten.github.io/fcache/>`_ contains an introduction along with an API overview. For more information on how to get started with fcache, be sure to read the documentation.\n\nBug/Issues Tracker\n------------------\n\nfcache uses its `GitHub Issues page <https://github.com/tsroten/fcache/issues>`_ to track bugs, feature requests, and support questions.\n\nLicense\n-------\n\nfcache is released under the OSI-approved `MIT License <http://opensource.org/licenses/MIT>`_. See the file LICENSE.txt for more information.\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "a dictionary-like, file-based cache module for Python",
    "version": "0.5.2",
    "project_urls": {
        "Changes": "https://tsroten.github.io/fcache/history.html",
        "Documentation": "https://tsroten.github.io/fcache",
        "Issue Tracker": "https://github.com/tsroten/fcache/issues",
        "Source Code": "https://github.com/tsroten/fcache"
    },
    "split_keywords": [
        "cache",
        "file",
        "serialize"
    ],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "fdaf9456f42b1fa74a44b9ac7c34c3cf4b4598a6e2eb2e996871b13f679ea431",
                "md5": "857813f1deadc86b49f3455ae183ba9a",
                "sha256": "b5913594389e04fde2b9d7797c37972e507f9d20bd225ffa5b0ee43d7cb9b7e0"
            },
            "downloads": -1,
            "filename": "fcache-0.5.2-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "857813f1deadc86b49f3455ae183ba9a",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7",
            "size": 8092,
            "upload_time": "2024-02-23T00:38:51",
            "upload_time_iso_8601": "2024-02-23T00:38:51.108426Z",
            "url": "https://files.pythonhosted.org/packages/fd/af/9456f42b1fa74a44b9ac7c34c3cf4b4598a6e2eb2e996871b13f679ea431/fcache-0.5.2-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "55ffb50ff1df7c943d2a35c58d17cc987e46ca086875e25264616f20dd1aefa6",
                "md5": "69f5361b2094df256e015f5eecfa8e3d",
                "sha256": "db127459a0c184a8aa8599fb9f85c5f403216282f27697cdf7adee012ccda5be"
            },
            "downloads": -1,
            "filename": "fcache-0.5.2.tar.gz",
            "has_sig": false,
            "md5_digest": "69f5361b2094df256e015f5eecfa8e3d",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7",
            "size": 7309,
            "upload_time": "2024-02-23T00:38:52",
            "upload_time_iso_8601": "2024-02-23T00:38:52.891827Z",
            "url": "https://files.pythonhosted.org/packages/55/ff/b50ff1df7c943d2a35c58d17cc987e46ca086875e25264616f20dd1aefa6/fcache-0.5.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-02-23 00:38:52",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "tsroten",
    "github_project": "fcache",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "fcache"
}
        
Elapsed time: 0.23932s