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.2.0.tar.gz (28.8 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.2.0-py3-none-any.whl (31.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: keboola_vcr-0.2.0.tar.gz
  • Upload date:
  • Size: 28.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.11 {"installer":{"name":"uv","version":"0.10.11","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.2.0.tar.gz
Algorithm Hash digest
SHA256 19b7b52930231b6f835687b2cd0006d7b079943f31a01679a914b9714c989c25
MD5 de6e2ba68b98164d21cdd23d7528fca3
BLAKE2b-256 962567763a92e7d06cb94ac7242078d69acb565c704e890aff22662192703f44

See more details on using hashes here.

File details

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

File metadata

  • Download URL: keboola_vcr-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 31.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.11 {"installer":{"name":"uv","version":"0.10.11","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.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d9f6f987bdc995e33e8ef1dfbbdb77a09322ffb318790147bf8c0e58de06cc51
MD5 7b4af2e7e0bc14aecb51a69889d6be31
BLAKE2b-256 81426a044f9df679a0d581ec8ea9fbdf3dfd02262feebd8c08916dde7387f526

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