cuvis-ai-schemas
Lightweight schema definitions for the cuvis-ai ecosystem.
Overview
cuvis-ai-schemas is a centralized, dependency-light package of schema definitions used across the cuvis-ai ecosystem. It enables type-safe communication between services without heavy runtime requirements.
Key points:
- Minimal deps (pydantic + pyyaml)
- Full Pydantic validation
- Optional extras for proto, torch, numpy, lightning, testing
Installation
uv add cuvis-ai-schemas
uv add "cuvis-ai-schemas[proto]"
uv add "cuvis-ai-schemas[full]"
Extras:
proto: gRPC and protobuf supporttorch: PyTorch dtype handling (validation only)numpy: NumPy array supportlightning: PyTorch Lightning training configstesting: Hypothesis strategies + round-trip assertions (cuvis_ai_schemas.testing)full: All featuresdev: Development dependencies
Usage
from cuvis_ai_schemas.pipeline import PipelineConfig, NodeConfig
pipeline = PipelineConfig(
nodes=[NodeConfig(name="node_1", class_name="my_pkg.DataLoader", hparams={"batch_size": 32})],
connections=[],
)
pipeline_json = pipeline.to_json()
pipeline = PipelineConfig.from_json(pipeline_json)
Development
uv sync --all-extras --dev
uv run pytest tests/ -v
uv run ruff check cuvis_ai_schemas/ tests/
uv run ruff format cuvis_ai_schemas/ tests/
uv run mypy cuvis_ai_schemas/
Contributing
Contributions are welcome. Please:
- Ensure tests pass
- Run ruff format and ruff check
- Keep type hints and update docs as needed
License
Licensed under the Apache License 2.0. See LICENSE for details.
Metadata
Release files for cuvis-ai-schemas 0.10.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 | |
|---|---|---|---|
| cuvis_ai_schemas-0.10.0.tar.gz | 253.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| cuvis_ai_schemas-0.10.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 330.2 kB
Release files / cuvis_ai_schemas-0.10.0.tar.gz
| Download URL | cuvis_ai_schemas-0.10.0.tar.gz |
|---|---|
| Size | 253.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
80e653376de82bc0a4c82adcd48918d943ac7ed649a912e416e1b9da082a6179
|
|
BLAKE2b-256 checksum How to use checksums |
b99b5444e9acf4b3888cee0942cc479e4fa0280838e18ef4e86e021337e2a026
|
| 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 25, 2026.
Transparency logRelease files / cuvis_ai_schemas-0.10.0-py3-none-any.whl
| Download URL | cuvis_ai_schemas-0.10.0-py3-none-any.whl |
|---|---|
| Size | 76.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2da76b280c7b6c89a6331f864da40a3081daeb96a0b64337309d0d8844af1cef
|
|
BLAKE2b-256 checksum How to use checksums |
012a2d23af455b178bd032a899b7e2f6bf8e25ff4d4d213e430b29abe06040d4
|
| 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 25, 2026.
Transparency log