Skip to main content

a dictionary-like, file-based cache module for Python

Project description

https://badge.fury.io/py/fcache.svg https://github.com/tsroten/fcache/actions/workflows/ci.yml/badge.svg

fcache is a dictionary-like, file-based cache module for Python. It’s simple to use, has an optional write buffer, and is Shelf-compatible.

>>> 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'
with FileCache('myapp') as mycache:
    mycache['foo'] = [1, 2, 3, 4, 5]

Install

To install fcache, use pip:

$ pip install fcache

Documentation

fcache’s documentation 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 to track bugs, feature requests, and support questions.

License

fcache is released under the OSI-approved MIT License. See the file LICENSE.txt for more information.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fcache-0.6.0.tar.gz (7.4 kB view details)

Uploaded Source

Built Distribution

fcache-0.6.0-py3-none-any.whl (8.2 kB view details)

Uploaded Python 3

File details

Details for the file fcache-0.6.0.tar.gz.

File metadata

  • Download URL: fcache-0.6.0.tar.gz
  • Upload date:
  • Size: 7.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.27.2

File hashes

Hashes for fcache-0.6.0.tar.gz
Algorithm Hash digest
SHA256 79949f0aafe8cedc5c9064631b3c157941a288e59f9991dd158c23e8e60b5422
MD5 69c046ddbf3f57a3465affd12a2f3911
BLAKE2b-256 009460d2b17996d5edf1a62d213ad37a9d2f25fd6864997dfd2b099fffc3deed

See more details on using hashes here.

File details

Details for the file fcache-0.6.0-py3-none-any.whl.

File metadata

  • Download URL: fcache-0.6.0-py3-none-any.whl
  • Upload date:
  • Size: 8.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.27.2

File hashes

Hashes for fcache-0.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 dbf0753bb7400ed80d703df9ffcfb438786698872ed92c50169f95cb0eac8306
MD5 73604b42e573eda6d6caed80ffaea0d2
BLAKE2b-256 840cababd9fed96d865463f95f897c48a8781bc831f9e08cdc8124b96964f92c

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page