crashbytes-testkit
Test data builders for Python — auto-generate dataclass instances from type hints.
Install
pip install crashbytes-testkit
Usage
from dataclasses import dataclass
from crashbytes_testkit import Fixture, Builder
@dataclass
class User:
name: str
age: int
email: str
# Auto-generate from type hints
user = Fixture.create(User)
users = Fixture.create_many(User, 5)
# Override specific fields
admin = Fixture.create(User, name="Admin", age=30)
# Fluent builder
user = (
Builder(User)
.with_field("name", "Alice")
.with_field("age", 25)
.build()
)
Supports: str, int, float, bool, bytes, datetime, date, UUID, list[T], dict[K,V], set[T], tuple, Optional[T], nested dataclasses.
License
MIT
Metadata
Release files for crashbytes-testkit 1.1.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| crashbytes_testkit-1.1.7.tar.gz | 51.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| crashbytes_testkit-1.1.7-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 55.6 kB
Release files / crashbytes_testkit-1.1.7.tar.gz
| Download URL | crashbytes_testkit-1.1.7.tar.gz |
|---|---|
| Size | 51.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
faa79f23732f88913637d41d111b9ca548395be2ac254125071f60763c4d3b6f
|
|
BLAKE2b-256 checksum How to use checksums |
bb5b27120079eaebcfdcb975084b734b2e86a08ccdaf36d81dfccbf5ae4701d6
|
| 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 Sep 1, 2026.
Transparency logRelease files / crashbytes_testkit-1.1.7-py3-none-any.whl
| Download URL | crashbytes_testkit-1.1.7-py3-none-any.whl |
|---|---|
| Size | 4.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
43ec4257bc7a80ec8fdb97ea23a572ecfbddaf2dbb4ca07257eec26ed0ebb736
|
|
BLAKE2b-256 checksum How to use checksums |
7e044759a0b0d5156acc2db13a899f0eb54d56aee6eeff94c65c6d40b375f16a
|
| 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 Sep 1, 2026.
Transparency log