Skip to main content

fscache

fscache is a Python package for caching data in the file system.

Installation

pip install fscache

Usage

import requests
from fscache import fscache

url = 'https://example.com/index.html'
cache_file = fscache.path(url, cache_dir='.fscache')

if fscache.valid(cache_file, lifetime=3600):
    content = fscache.load(cache_file)
    # Do something with content
else:
    content = requests.get(url).text
    # Save content in .fscache/https/example.com/index.html
    fscache.save(cache_file, content)

License

MIT © Ramiro Gómez

Metadata

Release files for fscache 0.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for fscache 0.4.0
File Size Uploaded Provenance Actions
fscache-0.4.0.tar.gz 7.9 kB Without provenance Details for fscache-0.4.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for fscache 0.4.0
File Interpreter ABI Platform Actions
fscache-0.4.0-py2.py3-none-any.whl Python 2, Python 3 none any Details for fscache-0.4.0-py2.py3-none-any.whl

Total release size: 13.5 kB

Release files / fscache-0.4.0.tar.gz

Download URL fscache-0.4.0.tar.gz
Size 7.9 kB
Tags Source
SHA-256 checksum
How to use checksums
79a00c70c669d1f8312ed7880835a3fcbe1a97e3d78c7f46520e7f9e405ad523
BLAKE2b-256 checksum
How to use checksums
ab7295a8267b5a010912765ec57cd42cc136d7db59c2c7b073ffd81fcbbc8c7d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.12

Release files / fscache-0.4.0-py2.py3-none-any.whl

Download URL fscache-0.4.0-py2.py3-none-any.whl
Size 5.6 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
fc3eb0849142e82b9c6d0b1354b41d724e044c3dda7cdc1c21a72d43ad661067
BLAKE2b-256 checksum
How to use checksums
79b796c2e589a0273363a81fe8db674da38f92128fd506e4b76cc30962ba443e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.12

Security for fscache 0.4.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page