fcache


Namefcache JSON
Version 0.6.0 PyPI version JSON
download
home_pageNone
Summarya dictionary-like, file-based cache module for Python
upload_time2024-11-19 22:32:16
maintainerNone
docs_urlNone
authorThomas Roten
requires_python>=3.9
licenseMIT
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.9",
    "maintainer_email": null,
    "keywords": "cache, file, serialize",
    "author": "Thomas Roten",
    "author_email": null,
    "download_url": "https://files.pythonhosted.org/packages/00/94/60d2b17996d5edf1a62d213ad37a9d2f25fd6864997dfd2b099fffc3deed/fcache-0.6.0.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": "MIT",
    "summary": "a dictionary-like, file-based cache module for Python",
    "version": "0.6.0",
    "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": "840cababd9fed96d865463f95f897c48a8781bc831f9e08cdc8124b96964f92c",
                "md5": "73604b42e573eda6d6caed80ffaea0d2",
                "sha256": "dbf0753bb7400ed80d703df9ffcfb438786698872ed92c50169f95cb0eac8306"
            },
            "downloads": -1,
            "filename": "fcache-0.6.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "73604b42e573eda6d6caed80ffaea0d2",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.9",
            "size": 8163,
            "upload_time": "2024-11-19T22:32:18",
            "upload_time_iso_8601": "2024-11-19T22:32:18.178706Z",
            "url": "https://files.pythonhosted.org/packages/84/0c/ababd9fed96d865463f95f897c48a8781bc831f9e08cdc8124b96964f92c/fcache-0.6.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "009460d2b17996d5edf1a62d213ad37a9d2f25fd6864997dfd2b099fffc3deed",
                "md5": "69c046ddbf3f57a3465affd12a2f3911",
                "sha256": "79949f0aafe8cedc5c9064631b3c157941a288e59f9991dd158c23e8e60b5422"
            },
            "downloads": -1,
            "filename": "fcache-0.6.0.tar.gz",
            "has_sig": false,
            "md5_digest": "69c046ddbf3f57a3465affd12a2f3911",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.9",
            "size": 7368,
            "upload_time": "2024-11-19T22:32:16",
            "upload_time_iso_8601": "2024-11-19T22:32:16.085581Z",
            "url": "https://files.pythonhosted.org/packages/00/94/60d2b17996d5edf1a62d213ad37a9d2f25fd6864997dfd2b099fffc3deed/fcache-0.6.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-11-19 22:32:16",
    "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.41591s