typed-diskcache
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.
- it doesn't support type hints.
- 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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| typed_diskcache-0.6.2.tar.gz | 60.7 kB | Without provenance | Details for typed_diskcache-0.6.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| typed_diskcache-0.6.2-py3-none-any.whl | Python 3 | none | any | Details for typed_diskcache-0.6.2-py3-none-any.whl |
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
|
Security for typed-diskcache 0.6.2
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.