
Security News
Browserslist-rs Gets Major Refactor, Cutting Binary Size by Over 1MB
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
.. 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]
To install fcache, use pip:
.. code:: bash
$ pip install fcache
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.
fcache uses its GitHub Issues page <https://github.com/tsroten/fcache/issues>
_ to track bugs, feature requests, and support questions.
fcache is released under the OSI-approved MIT License <http://opensource.org/licenses/MIT>
_. See the file LICENSE.txt for more information.
FAQs
a dictionary-like, file-based cache module for Python
We found that fcache demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
Research
Security News
Eight new malicious Firefox extensions impersonate games, steal OAuth tokens, hijack sessions, and exploit browser permissions to spy on users.
Security News
The official Go SDK for the Model Context Protocol is in development, with a stable, production-ready release expected by August 2025.