slab-schemas
The pydantic wire contract for the slab trading-card API: the request and response models (DTOs) and enums that the API serves and its clients consume.
pip install slab-schemas
Depends on pydantic only — no server, database, or ORM code — so a CLI or third-party client can import it to build typed requests and parse responses without pulling in the API.
from slab_schemas.cards import CardSearchQuery
from slab_schemas.collection import CollectionSearchQuery
query = CardSearchQuery(subject="Connor Bedard", year=2023)
# ... POST query.model_dump() to /cards/search, parse the JSON back into the typed result model
This is the single source of truth for the API's over-the-wire shape: the API produces these
models and clients (e.g. slab-cli) consume them, so the
two can never drift. Every entity identifier on the wire is a UUID; integer database keys are never
exposed here.
Requires Python 3.13+.
Release files for slab-schemas 0.28.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| slab_schemas-0.28.0.tar.gz | 30.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| slab_schemas-0.28.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 68.9 kB
Release files / slab_schemas-0.28.0.tar.gz
| Download URL | slab_schemas-0.28.0.tar.gz |
|---|---|
| Size | 30.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
772d71acad9778e2ff8b9ac44c563996d790390a183acb9f82817ecca14b4d47
|
|
BLAKE2b-256 checksum How to use checksums |
836e7ab65d919255708ef375ea51e4db793b8384b8030ba3f9884eda91d70d00
|
| 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 Aug 13, 2026.
Transparency logRelease files / slab_schemas-0.28.0-py3-none-any.whl
| Download URL | slab_schemas-0.28.0-py3-none-any.whl |
|---|---|
| Size | 38.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1364c1c1c27b4b48c4b59fb9bc920ad9dfa1c2925bb810ce2644ab44acce8b71
|
|
BLAKE2b-256 checksum How to use checksums |
a8c9150855a6f2545067282e1077e7d577941194951fb776ca7fab747e45daab
|
| 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 Aug 13, 2026.
Transparency log