Skip to main content

kassette

Another kubernetes testing tools

It takes inspiration from ruby https://github.com/vcr/vcr applied to kubernetes resources for testing purposes.

Features

  • take a yaml snapshot of the defined (from global configuration kassette.yaml and the ones from examples folder) kubernetes resource cluster and save it: kassette record
  • compare the recorded yaml snapshot with the current kubernetes cluster state: kassette diff
  • you can also do mass modification of all the resources in the snapshot with kassette modify command

Installation

pip install kassette-k8s

The package is named kassette-k8s, but the installed command is kassette.

Usage

For usage details, see: kassette [COMMAND] --help

kassette reads kassette.yaml and the examples folder from the current directory.

Requirements

This tools require the kubectl cli, it will use exclusively the get subcommand to retrieve the kubernetes resources.

Requires python 3.10+ (tested with python 3.12).

Contribution

Requires pipenv.

pipenv sync --dev
pipenv run pip install -e .
pipenv run bin/test
pipenv run bin/lint

End-to-end test

bin/e2e records and diffs the examples/demo kassettes against a disposable kind cluster (resources defined in tests/e2e.yaml).

It requires docker, kind and kubectl.

pipenv run bin/e2e

The cluster is created with a temporary kubeconfig (your ~/.kube/config is left untouched) and deleted at the end, even on failure.

The test fails if recording changes the files in examples/demo: when this is expected (e.g. a new Kubernetes version in kind), review the diff and commit the new kassettes.

Metadata

Release files for kassette-k8s 0.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for kassette-k8s 0.0.3
File Size Uploaded Provenance
kassette_k8s-0.0.3.tar.gz 16.0 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for kassette-k8s 0.0.3
File Interpreter ABI Platform
kassette_k8s-0.0.3-py3-none-any.whl Python 3 none any Details

Total release size: 29.5 kB

Release files / kassette_k8s-0.0.3.tar.gz

Download URL kassette_k8s-0.0.3.tar.gz
Size 16.0 kB
Tags Source
SHA-256 checksum
How to use checksums
04544cfcd41f91bb2724a88961ec9f3461f64b76d49f3a5d3a3f19c7ddcb1e4b
BLAKE2b-256 checksum
How to use checksums
fe056ac8cab0db0845259a344990a3fab5ea57960990928c6a33b83b7e65aeef
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 23, 2026.

Transparency log

Release files / kassette_k8s-0.0.3-py3-none-any.whl

Download URL kassette_k8s-0.0.3-py3-none-any.whl
Size 13.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f73134ec27e60910e3d21051ca16ed6af96c44aa37ce258f37eebc8013eea14a
BLAKE2b-256 checksum
How to use checksums
7dc630ec64dc799d570f52e48cb263ca26fed7b1b6834111672de30d3fb475a4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 23, 2026.

Transparency log

Security for kassette-k8s 0.0.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for kassette_k8s-0.0.3.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 23, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page