Skip to main content

No project description provided

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cachely-0.2.tar.gz (9.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cachely-0.2-py3-none-any.whl (9.6 kB view details)

Uploaded Python 3

File details

Details for the file cachely-0.2.tar.gz.

File metadata

  • Download URL: cachely-0.2.tar.gz
  • Upload date:
  • Size: 9.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for cachely-0.2.tar.gz
Algorithm Hash digest
SHA256 c076fe4e6e00719a2bd31c892724a0647318487e22a361ce7203e038cb7b882a
MD5 3ee2f4cbaf18985665d0cedb90398974
BLAKE2b-256 25aa6f5b792fb69f1b98613643e5bfdf1cd95cdc45f42d72a8ea3c96e8c7e54a

See more details on using hashes here.

File details

Details for the file cachely-0.2-py3-none-any.whl.

File metadata

  • Download URL: cachely-0.2-py3-none-any.whl
  • Upload date:
  • Size: 9.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for cachely-0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c83b7e8c6554873dddc17cd4f5f93ff648f33243175b627401d42a23647df005
MD5 1ac3faaecb1915ca529e4c0f53b37620
BLAKE2b-256 77cfae7ca6b4e4ebe23e930209d267b7682b1138ac9c33842d27f9269a03a4ae

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page