Cacheia API
This module contains the API for the Cacheia project. It exposes a HTTP interface to interact with all cacheia functionalities.
Installation
Install core with "core" optional to download core dependency:
pip install -e ./api[core]
API Endpoints
- POST
/cache/: receives the body parameterinstance: CachedValueand creates a new cache instance in the configured backend. - GET
/cache/: receives the optional paramsgroup: str, expires_range: tuple[float, float], creation_range: tuple[datetime, datetime]and gets all cached values that match the filters. - GET
/cache/{key}/: receives the paramskey: strand gets the cached value for the given key. - DELETE
/cache/: receives the optional paramsgroup: str, expires_range: tuple[float, float], creation_range: tuple[datetime, datetime]and flushes all cached values that matched the criteria. - DELETE
/cache/{key}/: receives the paramkey: strand flushes a specific key, removing its register in application cache. - DELETE
/cache/$clear/: receives no params and flushes all cached values in the application cache.
Docs
Run the code locally and check-out:
Running the API
To run the API it is only necessary to install the cacheia_api (api folder) and cacheia (core folder) packages and run the command:
python -m cacheia_api
It will run a local server with reload and one worker configured by default.
Metadata
Release files for cacheia-api 1.0.0.post3
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 |
|---|---|---|---|---|
| cacheia_api-1.0.0.post3.tar.gz | 5.1 kB | Without provenance | Details for cacheia_api-1.0.0.post3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| cacheia_api-1.0.0.post3-py3-none-any.whl | Python 3 | none | any | Details for cacheia_api-1.0.0.post3-py3-none-any.whl |
Total release size: 9.9 kB
Release files / cacheia_api-1.0.0.post3.tar.gz
| Download URL | cacheia_api-1.0.0.post3.tar.gz |
|---|---|
| Size | 5.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1b98c18f3094355e9fdb9e15f47442e6abd6eda3bc2fe804e2c6c23453ceaf10
|
|
BLAKE2b-256 checksum How to use checksums |
d27f4e4b4fff2259de088a978c93a7f8f1251694c97093e19e99e124ccac2e58
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.4
|
Release files / cacheia_api-1.0.0.post3-py3-none-any.whl
| Download URL | cacheia_api-1.0.0.post3-py3-none-any.whl |
|---|---|
| Size | 4.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8a2e9ac171c642e467dbd7727c7a06183d7cf5d4024c7de3a32e0a9c2c98f5f7
|
|
BLAKE2b-256 checksum How to use checksums |
2bdef2c001c1eda76577eb4342caae7adc4768c6a64b542652b9ed72124c4332
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.4
|
Security for cacheia-api 1.0.0.post3
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.