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
Release history Release notifications | RSS feed
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.1.tar.gz
(23.7 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file keboola_vcr-0.1.1.tar.gz.
File metadata
- Download URL: keboola_vcr-0.1.1.tar.gz
- Upload date:
- Size: 23.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.10.5 {"installer":{"name":"uv","version":"0.10.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f7163c8359553fcedb185bdb2d651afd6b47bbb732a5ec49debd5c749edfd288
|
|
| MD5 |
f6702266a481a81934a26e4ba34f6ab4
|
|
| BLAKE2b-256 |
cba597bf02f746f285b9260c81dbabdbea11ff56a688f952f35def24dfb4b54c
|
File details
Details for the file keboola_vcr-0.1.1-py3-none-any.whl.
File metadata
- Download URL: keboola_vcr-0.1.1-py3-none-any.whl
- Upload date:
- Size: 26.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.10.5 {"installer":{"name":"uv","version":"0.10.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
98a371cba4bb40a192156341cf7b55bbd6f3975acb095c7531ba503de230133f
|
|
| MD5 |
abffaf6a323c608f800c072f10602a06
|
|
| BLAKE2b-256 |
a3c71bd606a733bcb8be8eac1c096ba4c577ebd57651a020cd1f175836cdba4f
|