Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

robonix-api

Python client library for writing Robonix capability providers — primitives, services, and skills — and talking to the Atlas registry.

Robonix is an embodied-AI operating system. robonix-api is the client-side helper: it gives you Primitive / Service / Skill classes that handle Atlas registration, the Driver lifecycle gRPC server, and thin wrappers over rclpy / FastMCP / grpcio. The Atlas server itself is a separate Rust binary (robonix-atlas, see the main repo).

Install

pip install robonix-api

Optional extras:

pip install "robonix-api[codegen]"   # adds grpcio-tools, only needed if you run `rbnx codegen` from Python

ROS 2 (rclpy, sensor_msgs, geometry_msgs, etc.) is not a pip dependency — install ROS 2 Humble via apt on the host. robonix-api's ROS helpers import rclpy lazily, so the rest of the library works even without a ROS install.

Hello, primitive

from robonix_api import Primitive, Ok, Deferred

primitive = Primitive(
    id="my_lidar",
    namespace="robonix/primitive/lidar",
)

@primitive.on_init
def init(cfg: dict):
    topic = cfg.get("lidar_topic", "/scan")
    if not primitive.wait_for_topic(topic, "LaserScan", 30.0):
        return Deferred(f"no LaserScan on {topic} yet")
    primitive.create_publisher(
        contract_id="robonix/primitive/lidar/lidar2d",
        topic=topic,
        msg_type="LaserScan",
    )
    return Ok()

if __name__ == "__main__":
    primitive.run()

That's a complete Robonix primitive — registers with Atlas, serves the Driver lifecycle, waits for the upstream topic, declares a ROS 2 capability for downstream consumers, and blocks on SIGTERM.

What's in the box

  • ATLAS — module-level singleton client (ATLAS.register, ATLAS.find_primitive, ATLAS.connect, ...)
  • Primitive / Service / Skill — provider base classes with on_init / on_activate / on_deactivate / on_shutdown decorators
  • @provider.provides_grpc(contract) / @provider.provides_mcp(contract) — Layer-2 sugar for typed handlers
  • Ok / Err / Deferred — lifecycle return values
  • mcp_contract — standalone FastMCP decorator (use when you manage your own FastMCP app, e.g. in scene_service)

The Atlas wire protocol (atlas_pb2 / atlas_pb2_grpc) is pre-generated and bundled in the wheel. Per-contract stubs (robonix_contracts_pb2, MCP typed dataclasses) are generated per deployment by rbnx codegen against your contract TOMLs — robonix-api automatically picks them up from <pkg>/rbnx-build/codegen/ at runtime.

Versioning

robonix-api tracks the Robonix v0.1.x series. Wire format and public API are frozen within v0.1.x. Pre-release builds (0.1.0rc*) are published to Test PyPI first; stable releases to PyPI.

The Atlas server (Rust crate robonix-atlas) must be on a compatible minor version. Mixing robonix-api 0.1.x with an Atlas server on a different minor version is unsupported.

License

Mulan PSL v2.

Metadata

Release files for robonix-api 0.1.0rc1

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

Source distribution (sdist)

Source distribution for robonix-api 0.1.0rc1
File Size Uploaded Provenance Actions
robonix_api-0.1.0rc1.tar.gz 39.0 kB Without provenance Details for robonix_api-0.1.0rc1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for robonix-api 0.1.0rc1
File Interpreter ABI Platform Actions
robonix_api-0.1.0rc1-py3-none-any.whl Python 3 none any Details for robonix_api-0.1.0rc1-py3-none-any.whl

Total release size: 82.2 kB

Release files / robonix_api-0.1.0rc1.tar.gz

Download URL robonix_api-0.1.0rc1.tar.gz
Size 39.0 kB
Tags Source
SHA-256 checksum
How to use checksums
12b3211826e63b6eb415e8dad8bb4e584890650d61dd2c5bd08ac67ff849f3ac
BLAKE2b-256 checksum
How to use checksums
8bb04dabceb52082835470e574e23760cfb62681e6f78387dd5461672b766d13
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.5

Release files / robonix_api-0.1.0rc1-py3-none-any.whl

Download URL robonix_api-0.1.0rc1-py3-none-any.whl
Size 43.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
62eb2710a4762e722555c1d5ac9daccfd80bfcbfc553502d88463142aa1864aa
BLAKE2b-256 checksum
How to use checksums
09c52ac2afbccc0e5c064c3524716c35825ffc09236b7d64e727a4aed6239756
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.5

Security for robonix-api 0.1.0rc1

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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