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.2

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.2
File Size Uploaded Provenance
kassette_k8s-0.0.2.tar.gz 15.3 kB With provenance Details

Built distribution (wheel)

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

Total release size: 28.7 kB

Release files / kassette_k8s-0.0.2.tar.gz

Download URL kassette_k8s-0.0.2.tar.gz
Size 15.3 kB
Tags Source
SHA-256 checksum
How to use checksums
7beb971fd9d45816cbf4159bda7c72446b119fc1dd920824d382908f968bd7fa
BLAKE2b-256 checksum
How to use checksums
9f6849e6d539a6360d86b1adc171bdf3fe4825c3925c4ed71de5de3ba71e389f
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 16, 2026.

Transparency log

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

Download URL kassette_k8s-0.0.2-py3-none-any.whl
Size 13.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b01568faf448baf100f77d2fd7c5b6ad6cf2126cd9c2cceefcaf8b1cf8af1b60
BLAKE2b-256 checksum
How to use checksums
9cb09cbe994a76e1472f905994fc972f182c0990c2f4dbec1dabe6aa4bde82e6
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 16, 2026.

Transparency log

Security for kassette-k8s 0.0.2

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.2.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 16, 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