Skip to main content

Embodied Schemas

Shared Pydantic schemas and factual hardware/model data for embodied AI hardware/software codesign.

Overview

This package provides:

  1. Pydantic Schema Models - Type-safe data structures for hardware platforms, ML models, sensors, use cases, and benchmarks
  2. Factual Data Catalog - YAML files with validated specifications for chips, dev kits, perception models, and sensors
  3. Registry API - Unified access to query and filter the data catalog

Installation

pip install embodied-schemas

# For development
pip install -e ".[dev]"

Usage

Import Schema Models

from embodied_schemas import (
    HardwareEntry,
    ModelEntry,
    SensorEntry,
    UseCaseEntry,
    BenchmarkResult,
)
from embodied_schemas.hardware import HardwareType, PowerMode
from embodied_schemas.constraints import LatencyTier, PowerClass

Access Data Catalog

from embodied_schemas import Registry

# Load the catalog
registry = Registry.load()

# Look up hardware by ID
jetson_nano = registry.hardware.get("nvidia_jetson_nano_4gb")

# Find hardware matching criteria
edge_devices = registry.hardware.find(
    suitable_for="edge",
    power_watts_max=15
)

# Look up models
yolov8s = registry.models.get("yolov8s")
detection_models = registry.models.find(type="object_detection")

# Check compatibility
is_compatible = registry.is_compatible(
    model_id="yolov8s",
    hardware_id="nvidia_jetson_nano_4gb",
    variant="fp16"
)

Use in Tool Outputs

from embodied_schemas import BenchmarkResult
from embodied_schemas.benchmarks import LatencyMetrics

result = BenchmarkResult(
    model_id="yolov8s",
    hardware_id="nvidia_jetson_nano_4gb",
    variant="fp16",
    verdict="PASS",
    confidence="high",
    latency=LatencyMetrics(
        mean_ms=28.5,
        std_ms=2.1,
        p95_ms=32.0,
    ),
)

Data Catalog Structure

data/
├── hardware/           # Complete dev kits and platforms
│   ├── nvidia/
│   ├── qualcomm/
│   ├── hailo/
│   ├── google/
│   └── ...
├── chips/              # Raw SoC/chip specifications
│   ├── nvidia/
│   ├── qualcomm/
│   └── ...
├── models/             # ML model specifications
│   ├── detection/
│   ├── segmentation/
│   └── ...
├── sensors/            # Cameras, depth sensors, LiDAR
│   ├── cameras/
│   ├── depth/
│   └── lidar/
├── usecases/           # Application constraint templates
│   ├── drone/
│   ├── quadruped/
│   ├── amr/
│   └── edge/
└── constraints/        # Tier definitions
    ├── latency_tiers.yaml
    └── power_classes.yaml

Contributing

Adding Hardware Data

  1. Create YAML file: src/embodied_schemas/data/hardware/{vendor}/{name}.yaml
  2. Follow the schema in src/embodied_schemas/hardware.py
  3. Run validation: pytest tests/test_data_validity.py
  4. Include datasheet URL in the file

Schema Changes

  • Schema changes require version bump
  • Breaking changes require major version bump
  • Add deprecation warnings before removing fields

License

MIT License - see LICENSE file for details.

Metadata

Release files for embodied-schemas 0.7.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 embodied-schemas 0.7.0
File Size Uploaded Provenance
embodied_schemas-0.7.0.tar.gz 420.9 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for embodied-schemas 0.7.0
File Interpreter ABI Platform
embodied_schemas-0.7.0-py3-none-any.whl Python 3 none any Details

Total release size: 936.3 kB

Release files / embodied_schemas-0.7.0.tar.gz

Download URL embodied_schemas-0.7.0.tar.gz
Size 420.9 kB
Tags Source
SHA-256 checksum
How to use checksums
7a4e66d527ff57d9090a2a6df770579472e7d2f934f9f725ee8be1d0187064b9
BLAKE2b-256 checksum
How to use checksums
ac2e3c66099eff4a85dd386a9fa347a0aaedd2a38ea9533d67639baad047c78a
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 14, 2026.

Transparency log

Release files / embodied_schemas-0.7.0-py3-none-any.whl

Download URL embodied_schemas-0.7.0-py3-none-any.whl
Size 515.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1b85e8279aeaf3962f9169cf0cc3851aae9b227873bde5e5866781c55cbc2b76
BLAKE2b-256 checksum
How to use checksums
0cc9cf23e4c5e36999f25f2faf559173e0907ca00ce639f51eb68ad9cc89148a
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 14, 2026.

Transparency log

Security for embodied-schemas 0.7.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

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for embodied_schemas-0.7.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 Sep 14, 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