Skip to main content

No project description provided

Project description

keble-keepa

keble-keepa is Keble's Keepa API and cache package. It owns Keepa object schemas, sync/async API access, Mongo cache CRUD, batch loading, time conversion helpers, and pytest fixtures/fakes for downstream packages.

Verified State

Checked on 2026-06-30 against pyproject.toml, package exports, keble_keepa/, and tests.

  • Package: keble-keepa 1.2.3
  • Python: >=3.13,<3.14
  • Critical deps: aiohttp, requests, keble-db, keble-helpers, keble-exceptions, python-dateutil, tenacity
  • Source roots: api/, crud/, schemas/, testing/, utils/
  • Public exports: Keepa API objects, batch loader, cache helpers, time conversion helpers, and the keble_keepa.testing pytest plugin.

Runtime Contract

  • Sync Keepa calls use requests; async Keepa calls use aiohttp and should respect standard proxy environment variables when configured by callers.
  • Cache reads and writes must stay explicit about key, marketplace, and freshness behavior. Do not hide broad cache scans behind convenience APIs.
  • Downstream tests should use keble_keepa.testing fixtures/fakes before inventing package-local Keepa mocks.

Testing

uv sync --group test
uv run pytest -m "not live and not slow and not eval and not local_stack and not db_stack and not container"
uv run npx --yes pyright .

Real Keepa calls belong only in marked/env-gated live tests. Package-owned test helpers live under keble_keepa.testing; do not recreate root-level tests/config.py, root test packages, or legacy tests/test_* source folders.

Mongo/Redis/Keepa live settings load explicit process env first, then tests/.env, then the umbrella keble.backend/.env through keble_db.testing.resolve_test_env. Set KEBLE_BACKEND_ENV_FILE=/path/to/.env from unusual worktree or CI layouts. Do not copy backend secrets into this repo.

Live Keepa canaries should make one real provider call against an isolated cache collection. Do not add Keepa response-cache replay to live tests for speed; cache correctness belongs in integration tests with fake/shared fixtures.

Change Logs

Historical release notes and long AI change history live under logs/.

Side Effect If Changes

  • Backend report generation, product discovery, keble-keepa-analysis, and AMZ product-report workflows depend on this package for Keepa access.
  • Cache query/index changes can affect production cache repair and live report correctness; verify query shape and cleanup.

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

keble_keepa-1.2.3.tar.gz (324.1 kB view details)

Uploaded Source

Built Distribution

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

keble_keepa-1.2.3-py3-none-any.whl (128.7 kB view details)

Uploaded Python 3

File details

Details for the file keble_keepa-1.2.3.tar.gz.

File metadata

  • Download URL: keble_keepa-1.2.3.tar.gz
  • Upload date:
  • Size: 324.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.9 {"installer":{"name":"uv","version":"0.10.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for keble_keepa-1.2.3.tar.gz
Algorithm Hash digest
SHA256 310529884cde17a1f069e25bd60ec384e292e848c97ff7575663187ebc7ac38a
MD5 b4860320cc955f932cd687cd786337f3
BLAKE2b-256 9e046df3d9e14c094e730ac9739a3fd059347cfd74dfeed13c2398385d55146a

See more details on using hashes here.

File details

Details for the file keble_keepa-1.2.3-py3-none-any.whl.

File metadata

  • Download URL: keble_keepa-1.2.3-py3-none-any.whl
  • Upload date:
  • Size: 128.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.9 {"installer":{"name":"uv","version":"0.10.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for keble_keepa-1.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 989bcf7897ffa17db28a3c5ad0f2dbd17168371f81dd67d57abb01ab3e1d6f67
MD5 46809f5dc88d81e007f6f3b2ed8d71b9
BLAKE2b-256 5ea86b71e04d4c5691325ef1e356c513ee04404e316308acf2b8550b2bd5ebeb

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