a dictionary-like, file-based cache module for Python
Project Links
Meta
Author: Thomas Roten
Requires Python: >=3.9
Classifiers
Development Status
- 5 - Production/Stable
Intended Audience
- Developers
License
- OSI Approved :: MIT License
Operating System
- OS Independent
Programming Language
- Python
- Python :: 3
- Python :: 3.9
- Python :: 3.10
- Python :: 3.11
- Python :: 3.12
- Python :: 3.13
Topic
- Software Development :: Libraries :: Python Modules
- System :: Filesystems
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.
Nov 19, 2024
0.6.0
Feb 23, 2024
0.5.2
Jun 28, 2023
0.5.1
Mar 19, 2023
0.5.0
Mar 12, 2017
0.4.7
Oct 22, 2015
0.4.5
Mar 19, 2014
0.4.4
Mar 13, 2014
0.4.3
Mar 01, 2014
0.4.2
Jan 03, 2014
0.4.1
Jan 02, 2014
0.4
Apr 19, 2013
0.3.1
Jan 03, 2013
0.3
Dec 31, 2012
0.2.1
Dec 31, 2012
0.2
Dec 30, 2012
0.1
Wheel compatibility matrix
Files in release
Extras:
None
Dependencies:
(~=3.0)
platformdirs