GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - marwansakas/python-diskcache: Fork of DiskCache, a pure-Python disk-backed cache library with tests and docs.

BranchesTags
Open more actions menu
 
 

Latest commit

 

History

743 Commits
743 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
.idea
.idea
 
 
diskcache
diskcache
 
 
docs
docs
 
 
marwan_tests
marwan_tests
 
 
policy_comparison
policy_comparison
 
 
tests
tests
 
 
.gitignore
.gitignore
 
 
.pylintrc
.pylintrc
 
 
LICENSE
LICENSE
 
 
MANIFEST.in
MANIFEST.in
 
 
README.md
README.md
 
 
README.rst
README.rst
 
 
mypy.ini
mypy.ini
 
 
parameter_sweep_results.json
parameter_sweep_results.json
 
 
requirements-dev.txt
requirements-dev.txt
 
 
requirements.txt
requirements.txt
 
 
setup.py
setup.py
 
 
tox.ini
tox.ini
 
 

Repository files navigation

python-diskcache

This repository is a fork of DiskCache, a pure-Python disk-backed cache library for developers who need persistent key-value caching without running a separate cache server. It uses SQLite and filesystem storage to provide cache, fanout cache, deque, index, memoization, locking, throttling, and Django-compatible cache helpers.

The full upstream README is kept in README.rst for package publishing and detailed API documentation.

Tech Stack

  • Python
  • SQLite
  • setuptools
  • tox
  • pytest
  • Django integration tests

Quick Start

Install the package in editable mode:

python -m pip install -e .

Install development dependencies:

python -m pip install -r requirements-dev.txt

Run the test suite:

python -m pytest

Run the configured tox environments when the required Python versions are available:

tox

Demo / Usage

from diskcache import Cache

cache = Cache("tmp-cache")
cache["answer"] = 42
print(cache["answer"])
cache.close()

Project Structure

  • diskcache/: library source.
  • tests/: unit and integration tests.
  • docs/: Sphinx documentation and benchmark notes.
  • .github/workflows/: integration and release automation.
  • tox.ini: formatting, linting, docs, type, and test environments.

About

Fork of DiskCache, a pure-Python disk-backed cache library with tests and docs.

github.com/marwansakas/python-diskcache#python-diskcache

Topics

cachediskcachelibrarypythonsqlite

Resources

Readme
License
Activity

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.