a dictionary-like, file-based cache module for Python
Project description
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
79949f0aafe8cedc5c9064631b3c157941a288e59f9991dd158c23e8e60b5422
|
|
| MD5 |
69c046ddbf3f57a3465affd12a2f3911
|
|
| BLAKE2b-256 |
009460d2b17996d5edf1a62d213ad37a9d2f25fd6864997dfd2b099fffc3deed
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dbf0753bb7400ed80d703df9ffcfb438786698872ed92c50169f95cb0eac8306
|
|
| MD5 |
73604b42e573eda6d6caed80ffaea0d2
|
|
| BLAKE2b-256 |
840cababd9fed96d865463f95f897c48a8781bc831f9e08cdc8124b96964f92c
|