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.1.0.tar.gz (23.7 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.1.0-py3-none-any.whl (26.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: keboola_vcr-0.1.0.tar.gz
  • Upload date:
  • Size: 23.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.5

File hashes

Hashes for keboola_vcr-0.1.0.tar.gz
Algorithm Hash digest
SHA256 a243bed8855a014c05ec33b2338443057a8af3f27a0f8d1ab9b9737e98ec2f69
MD5 a8da3aff4f9a447eacd9eebba4632f30
BLAKE2b-256 bee10c3add03db79af0d987a98785cae167b18f5d963e100f82e28a15b652461

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for keboola_vcr-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a922aa13b93a9abcc2dbfdd83371879d2cb8790b002a8b8c1882aa6d0bb861de
MD5 c92060dabc49b22f09830643c85dfeb5
BLAKE2b-256 380af66e205debd0e959c2021fd1aa1901036a94eeded672bad6e06c68f0457e

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