PYPI PACKAGE AUDIT v1.35.0 Gesundes Paket

datacache

Helfer zum transparenten Herunterladen von Datensätzen

PyPkgScore datacache
Methodik & Kriterien ♥ Donate
720 / 1000
Schnellinstallation
pip install datacache
1. Governance
50/200
2. PEP-Metadaten
200/200
3. Sicherheit
150/200
4. Doku & SEO
155/200
5. CI-Engineering
165/200
📣 Prüfung teilen: Teilen Sie diesen Bericht und die Vorschau in der aktuellen Sprache
Advertisement
PYPI-TELEMETRIE

Downloads & Community-Verbreitung

Letzte 30 Tage (ohne Spiegelserver)
Letzte 7 Tage
12409
Letzte 30 Tage
33157
Gesamt (180 Tage)
175434
Metrik / Ökosystem Status / Wert Quelle
Downloads (30d / 180d) — PyPI Stats (without mirrors)
Trusted Publishing (PEP 740) ✕ Not detected PyPI Integrity / Sigstore
Django Packages — djangopackages.org
PyTech / PyPkgScore 720 / 1000 PyPkgScore Engine

Gesundheits- & Engineering-Analyse (5 Säulen)

1. Governance & Community50 / 200 ▾
LICENSE✓ 50 pts
SECURITY.md✕ 0 pts
CONTRIBUTING.md✕ 0 pts
CODE_OF_CONDUCT.md✕ 0 pts
2. PEP-Metadaten & Paketierung200 / 200 ▾
Wheel (.whl)✓ 50 pts
pyproject.toml✓ 50 pts
Project URLs✓ 50 pts
Trove Classifiers✓ 50 pts
3. Sicherheit & Lieferkette150 / 200 ▾
Null CVEs (OSV)✓ 60 pts
Trusted Publishing (OIDC)✕ 0 pts
Snyk / Audit Link✓ 40 pts
HTTPS-Repository✓ 50 pts
4. Dokumentation, SEO & Ökosystem155 / 200 ▾
Strukturierte README✓ 60 pts
Read the Docs✓ 50 pts
Django Packages✕ 0 pts
Webseite / Fachartikel✓ 45 pts
5. Engineering, CI & Qualität165 / 200 ▾
Automatisierte Tests✓ 65 pts
GitHub Actions CI✓ 65 pts
CHANGELOG.md✓ 35 pts
Env & Lockfile (uv/rye/poetry/pdm/hatch)✕ 0 pts
Advertisement
README & DOCS

Offizielle Dokumentation & Nutzungsleitfaden — datacache

PyPI Metadata v1.35.0
Vollständige Originaldokumentation anzeigen (Englisches README) ▾

DataCache

Tests Coverage PyPI

Download a dataset once, verify it, and reuse the local file on later runs. DataCache handles streaming downloads, gzip/ZIP decompression, tar-tree installation, offline inspection and SQLite caches built from pandas DataFrames. It is the download layer of the OpenVax tools: PyEnsembl, pepdata, orfdata and Vaxrank use it, and any Python application can.

Install

Python 3.11 or newer is required; CI tests Python 3.11–3.14.

python -m pip install datacache
# Optional HTML-table conversion:
python -m pip install "datacache[html]"

Quick start

Download a file once, then reuse its local path on later calls:

from datacache import Cache

cache = Cache("my-project")
url = "https://raw.githubusercontent.com/openvax/datacache/master/LICENSE"
path = cache.fetch(url, filename="LICENSE", timeout=30)
print(open(path).readline().strip())

# Reuses the cached file without a network request, even in a later process.
print(cache.fetch(url, filename="LICENSE") == path)
Apache License
True

path is under the platform cache directory, for example ~/Library/Caches/my-project/LICENSE on macOS or ~/.cache/my-project/LICENSE on Linux. Replace the URL and filename with your dataset. Existing files are reused until you refresh them with force=True, or periodically with expire_after; DataCache doesn't ask the server whether a file has changed. Add show_progress=True to display a download bar; no extra installation is needed.

Documentation

The documentation starts with an offline example that verifies a file's checksum, then covers one task per page. In reading order:

  1. Download and inspect files: exact destinations, integrity checks, freshness, retries, resumable transfers and offline inspection.
  2. Read tables and build SQLite caches from CSV files and pandas DataFrames.
  3. Share a cache between users and packages.
  4. Install pinned bundles of files that belong together, or archive trees.
  5. Build derived files from downloads and publish them together.
  6. Integrate a consuming library.

Also see choose an interface, the API reference and the release notes.

Dependencies and progress display

tqdm is installed by default; existing download APIs enable displays with show_progress=True, while materialize enables them by default. Quiet use does not import tqdm or configure your application's logging. The old datacache[progress] install syntax remains supported as a compatibility alias.

DataCache requires pandas>=3,<4 and Python 3.11 or newer. CI tests current pandas 3.x across Python 3.11–3.14 and checks the pandas 3.0.0 minimum on Python 3.11. Existing SQLite caches remain reusable without rebuilding them.

Development

python -m pip install -e ".[test]"
./lint.sh   # ruff
./test.sh   # pytest with coverage
python -m examples.basic_usage

The development wrappers use python from your active environment. Set PYTHON=/path/to/python to select another interpreter. Pass pytest arguments through ./test.sh -k test_name or ./lint-and-test.sh -k test_name.

Tests use local files, mocked responses, and local HTTP servers. They do not depend on external dataset servers. See CI for the Python, dependency, and operating-system combinations exercised.

Build the site with python -m pip install -r requirements-docs.txt and ./docs.sh. See the release procedure.

License

Apache License 2.0