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.4.0.tar.gz (34.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.4.0-py3-none-any.whl (38.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: keboola_vcr-0.4.0.tar.gz
  • Upload date:
  • Size: 34.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.5 {"installer":{"name":"uv","version":"0.11.5","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.4.0.tar.gz
Algorithm Hash digest
SHA256 6c5888c4524ba67741ea1c42b38dec7ff360590c96a1ed734c2e4a6772247f08
MD5 72f85c4eae92388dd39caafd56d9dcc3
BLAKE2b-256 50ceb6d17eb828e50dbcc1b8f932d600397e0755bf0c8c582587010a26c9b06e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: keboola_vcr-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 38.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.5 {"installer":{"name":"uv","version":"0.11.5","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.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 85e8875596e1161189d71c83e165ee5377822019bfcdf3408d36057d0eae8068
MD5 59dd0b29343db45e76f816a4359a2baf
BLAKE2b-256 1e260895006c33458226254da99e598b4c6d86c80ee0a3db95719b48c2e196ea

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