Skip to main content

VCR recording, sanitization, and validation for Keboola component HTTP interactions

Project description

keboola.vcr

VCR recording, sanitization, and validation for Keboola component HTTP interactions.

Installation

pip install keboola.vcr

Usage

from keboola.vcr.recorder import VCRRecorder
from keboola.vcr.sanitizers import DefaultSanitizer

recorder = VCRRecorder(
    cassette_dir="tests/cassettes/my_test",
    secrets={"api_key": "secret"},
)

Features

  • Recording: Captures real HTTP interactions via vcrpy and stores them as JSON cassettes
  • Sanitization: Redacts secrets, tokens, and sensitive fields before saving cassettes
  • Scaffolding: Generates test directory structures from component config definitions
  • Validation: Compares output snapshots to detect regressions

Development

uv sync --all-groups
uv run pytest tests/

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

keboola_vcr-0.5.0.tar.gz (40.9 kB view details)

Uploaded Source

Built Distribution

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

keboola_vcr-0.5.0-py3-none-any.whl (45.1 kB view details)

Uploaded Python 3

File details

Details for the file keboola_vcr-0.5.0.tar.gz.

File metadata

  • Download URL: keboola_vcr-0.5.0.tar.gz
  • Upload date:
  • Size: 40.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for keboola_vcr-0.5.0.tar.gz
Algorithm Hash digest
SHA256 b924d3b897cc1203a26077ed1016f3a1a559cac151ee6b6662ff2398f92128c9
MD5 5c65bb4ab0e42aacb21a40b83b618d9c
BLAKE2b-256 9745deaeec7cedfc9dd2b5018b24a54a4ad14c9eef943a83d6fda625b76aa3ca

See more details on using hashes here.

File details

Details for the file keboola_vcr-0.5.0-py3-none-any.whl.

File metadata

  • Download URL: keboola_vcr-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 45.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for keboola_vcr-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 aa1619873944f9b79881d75b50ae3e36d9810a5009a053b074135f9193ac73c3
MD5 e1ccf2b9b4c03c2e4ce80e84ef015b79
BLAKE2b-256 a463688abe43d0c7185582033496b09a936be4da549ae204bfcbb5d498c0cf39

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