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.21.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.21.0
File Size Uploaded Provenance
embodied_schemas-0.21.0.tar.gz 549.1 kB With provenance Details

Built distribution (wheel)

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

Total release size: 1.2 MB

Release files / embodied_schemas-0.21.0.tar.gz

Download URL embodied_schemas-0.21.0.tar.gz
Size 549.1 kB
Tags Source
SHA-256 checksum
How to use checksums
46de797225dc30982b29293883d0349c36e3b06dec38f3850018a830dffa867e
BLAKE2b-256 checksum
How to use checksums
e6edbb6ec2b6f305e139c1cf464acd2b4a2b194a6849924f1fb076109f6c53bd
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 Oct 3, 2026.

Transparency log

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

Download URL embodied_schemas-0.21.0-py3-none-any.whl
Size 630.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d506c8853a096eeeeb788e0cf4d557d837dda9e1b8160a0a451553b32cc759fb
BLAKE2b-256 checksum
How to use checksums
d0422c57b1cb8dc51ed12805b072d695a825b44d6750ed632f560c2e16e1aeef
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 Oct 3, 2026.

Transparency log

Security for embodied-schemas 0.21.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.21.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 3, 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