Skip to main content

typed-diskcache

License: Apache-2.0 Documentation Status PyPI version python version

how to install

$ pip install typed-diskcache
# or
$ pip install "typed-diskcache[asyncio]"

why use typed-diskcache

While python-diskcache is a very nice library, it has two shortcomings.

  1. it doesn't support type hints.
  2. does not support asynchronous syntax.

I know there were some requests for this, but they were rejected.

I created a stub package to solve the type hinting issue. And this time I wanted to create a wrapper that added asynchronous syntax. But I decided that if I'm going to do this, I might as well just create a new one.

The logic used is mostly the same as the original. However, instead of using queries directly, I used sqlalchemy. There are some changes in the way data is stored in the DB and retrieved, so it's not exactly the same as before.

Some features were left out. This is because I don't use them. If I think I'll need them in the future, I'll add them.

This could be a performance issue. That's because my focus was on working first, not performance. I'll fix this later.

I haven't tested it yet, so I can't guarantee it will work. I'll be adding more tests over time.

TODO

  • docstring

Most of it is a copy of python-diskcache, but it's still pretty clean.

  • docs
  • tests
  • performance

License

Apache-2.0, see LICENSE.

Metadata

Release files for typed-diskcache 0.6.2

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

Source distribution (sdist)

Source distribution for typed-diskcache 0.6.2
File Size Uploaded
typed_diskcache-0.6.2.tar.gz 60.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for typed-diskcache 0.6.2
File Interpreter ABI Platform
typed_diskcache-0.6.2-py3-none-any.whl Python 3 none any Details

Total release size: 141.7 kB

Release files / typed_diskcache-0.6.2.tar.gz

Download URL typed_diskcache-0.6.2.tar.gz
Size 60.7 kB
Tags Source
SHA-256 checksum
How to use checksums
72861fb769937122369382eb24dd3220e79bbfe669f873e3785cc658948b5585
BLAKE2b-256 checksum
How to use checksums
6b26bb7b20ba0966d4bd8306d72ebfd3dd61d1985de5222d266a3ef2db24f49c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.9.2

Release files / typed_diskcache-0.6.2-py3-none-any.whl

Download URL typed_diskcache-0.6.2-py3-none-any.whl
Size 81.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8b209a5ca8463827b4251db4f3f153bb36daef78133ee5652f1bb127fc4ff70d
BLAKE2b-256 checksum
How to use checksums
24d8c842ada7c25bc31a6e3aa80bf6bbd539162fc88a53ce0fad3cf02ee2ac6a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.9.2

Release history Release notifications | RSS feed

This release

0.6.2 This release

2 release files

0.5.0

2 release files

0.4.6

2 release files

0.4.5

2 release files

0.4.4

2 release files

0.4.3

2 release files

0.4.1

2 release files

0.4.0

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.0

2 release files

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