Skip to main content

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

Metadata

Release files for slab-schemas 0.103.0

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

Source distribution (sdist)

Source distribution for slab-schemas 0.103.0
File Size Uploaded Provenance Actions
slab_schemas-0.103.0.tar.gz 97.4 kB With provenance Details for slab_schemas-0.103.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for slab-schemas 0.103.0
File Interpreter ABI Platform Actions
slab_schemas-0.103.0-py3-none-any.whl Python 3 none any Details for slab_schemas-0.103.0-py3-none-any.whl

Total release size: 213.0 kB

Release files / slab_schemas-0.103.0.tar.gz

Download URL slab_schemas-0.103.0.tar.gz
Size 97.4 kB
Tags Source
SHA-256 checksum
How to use checksums
0bac73932bc9d05760189ed6a1e21138481b6b9a3f6d1e2bda110a5735bca20c
BLAKE2b-256 checksum
How to use checksums
1646a1280ceb3853b3b4be49524495ad0c423cff887f5df204ac2f647a5367cf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 30, 2026.

Transparency log

Release files / slab_schemas-0.103.0-py3-none-any.whl

Download URL slab_schemas-0.103.0-py3-none-any.whl
Size 115.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
df97fbfd345db84798c56e6127a47fc4712928c589280b184c3ce07fa8269e68
BLAKE2b-256 checksum
How to use checksums
3ded80dcc5edfe9d7e2c9cf47de5c9b72957fa4e665c82f7d491eed4aba86b55
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 30, 2026.

Transparency log

Security for slab-schemas 0.103.0

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

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for slab_schemas-0.103.0.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 30, 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.

Release history Release notifications | RSS feed

This release

0.103.0 This release

2 release files Full provenance

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