Metadata-Version: 2.4
Name: robotparts
Version: 2026.12.1.1
Summary: Sourced specs, prices and Python datasheets for robot actuators, cameras and power supplies
Requires-Python: >=3.10
Description-Content-Type: text/markdown

# robotparts

Sourced specs, prices, views and measurements for robot parts, as Python objects.

```
pip install --index-url https://robotparts.dev/simple/ robotparts
```

```python
from robotparts import RobotPart                  # the one type every part is (robotparts.Part is the same class)
import robotparts
from robotparts.psu import meanwell_epp_500_36    # a Psu: the same object as robotparts.get("meanwell-epp-500-36")
meanwell_epp_500_36.vout_nominal_v.value, meanwell_epp_500_36.vout_nominal_v.source_url

from robotparts import v2                         # robotparts/2: every part, including retired and folder-only ones
gim = v2.get("aifitlab-8541438771336")            # also robotparts.servo.gim4305_10 and actuator.steadywin.gim4305_10
gim.level, dict(gim.checks)                       # the frozen evidence ladder: listed, cited, cad, sim, measured, computed
gim.ready, gim.readiness                          # robotparts/2.11: 1 Listed -> 2 Datasheet ready (needs a hosted photo too)
                                                  # -> 3 3D ready -> 4 Sim ready -> 5 Hardware ready, and the checklist behind it
gim.spec("peak_torque"), gim.si("max_output_speed")   # one name per spec across atlases; SI by the registry
gim.best_offer(region="CA"), gim.listings, gim.measured, gim.comparisons, gim.views["3d-models"], gim.ports
v2.parts(category="camera", level=2), v2.resolve("https://robotparts.dev/actuator/steadywin/gim4305-10/")

from robotparts import measure                    # measurements across units, like benchmark results
measure.stats(gim, "gear_ratio")                  # per scope: units, contributors, median, its interval, the datasheet
```

`python -m robotparts.measure check my-bundle.json` checks a measurement bundle against this release before you
send it (robotparts.dev/measure/ does the same in the browser); `python -m robotparts.measure new <id>` prints one
to fill in.

- **Provenance:** every value cites its source (`source_url`, `source_kind`) and is copied verbatim from its
  atlas or part folder; a missing value is `None`, never a guess. `part.origin` pins the atlas commit.
- **One object per id:** `robotparts.get()`, `robotparts.v2.get()`, every import path and every
  `from robotparts.<category> import <name>` return the same `RobotPart`.
- **robotparts/1 is unchanged:** `robotparts.get()`, `parts()`, `find()` and `categories()` answer over the v1
  catalog, and `part.to_dict()` is its v1 entry; a retired or folder-only id is in `robotparts.v2`.
- **Python datasheets:** each part's module, `robotparts/<category>/datasheets/<name>.py`, is its literal
  `RobotPart(...)`: every spec, offer and extra with its source, as the catalog states it. Every import path imports
  that module, and its literal is the one object for the id, with the layers the build derives (level, views,
  listings, measured, paths) added from the record.
- The modules under `robotparts.<category>` and the namespaces are build outputs, not hand-edited files.
  Format and release are `robotparts.FORMAT` / `RELEASE` and `robotparts.v2.FORMAT` / `RELEASE`; stdlib only,
  Python 3.10+.
