A very simplistic resource caching utility for retrieving and storing web content locally to either the file system or SQLite database.
API
from cachely.client import Client
client = Client()
content = client.load_content("https://example.com")
CLI
$ cachely --help
usage: cachely [-h] [--list] [--delete] [--purge] [--ttl TTL] [--dirname DIRNAME] [--filename FILENAME] [--backend BACKEND] [--info] [--verbose] [URL]
positional arguments:
URL
options:
-h, --help show this help message and exit
--list, -l Show a listing of cached URLs.
--delete Delete the entry for a given URL or ID.
--purge Purge all cached entries.
--ttl TTL, -t TTL Set the time-to-live value in days for a new entry.
--dirname DIRNAME, -d DIRNAME
Directory location to use for database/files.
--filename FILENAME, -f FILENAME
Filename to use for sqlite database, if used.
--backend BACKEND, -b BACKEND
Specify cache storage: FILE, DB, or python import string for backend
--info Show cache info and exit.
--verbose, -v Toggle debug output.
Release files for cachely 0.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 | |
|---|---|---|---|
| cachely-0.2.tar.gz | 9.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| cachely-0.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 18.9 kB
Release files / cachely-0.2.tar.gz
| Download URL | cachely-0.2.tar.gz |
|---|---|
| Size | 9.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c076fe4e6e00719a2bd31c892724a0647318487e22a361ce7203e038cb7b882a
|
|
BLAKE2b-256 checksum How to use checksums |
25aa6f5b792fb69f1b98613643e5bfdf1cd95cdc45f42d72a8ea3c96e8c7e54a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.2
|
Release files / cachely-0.2-py3-none-any.whl
| Download URL | cachely-0.2-py3-none-any.whl |
|---|---|
| Size | 9.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c83b7e8c6554873dddc17cd4f5f93ff648f33243175b627401d42a23647df005
|
|
BLAKE2b-256 checksum How to use checksums |
77cfae7ca6b4e4ebe23e930209d267b7682b1138ac9c33842d27f9269a03a4ae
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.2
|