Skip to main content

Python Agent

The Python Agent package lets you build Paranet actors in pure Python while Paraflow code is generated for you behind the scenes. Python actors are ideal when you:

  • prototype a new Paranet skill quickly,
  • want to wrap an existing Python service (e.g., ROS, OpenCV, a REST micro‑service) so that it can participate on the Paranet, or
  • integrate with simulation environments—such as NVIDIA Omniverse Isaac Sim—that already expose rich Python APIs.

Installation

pip install paranet_agent

When using this in Isaac Sim, remember that you need to install it within the Python environment bundled with Isaac Sim.

Usage

Once registered, every Python actor is treated exactly like any Paraflow actor:
it advertises skills, receives PnCP requests, benefits from Negative‑Trust‑Security (NTS) certificates that are issued automatically, and can be observed, audited, and orchestrated by any other node that is affiliated with yours.

Example actors (including those used in the Isaac Sim kits) live in the examples/ folder of the GitHub repo.

Implementing an actor with the Python Agent package involves creating a class that defines the actor's behavior and the data types used by that actor (e.g. input/output types). The types, actor class and actor class methods are annotated with Python decorators to declare how they map to Paranet concepts like actor, skill request, etc.

Once you've implemented your actors, you need to implement these steps in order

  1. register the actors
  2. start the agent runtime
  3. deploy the actors

See the hello_python project for a complete example.

Learning More

APIPurposeWhere to Learn More
DecoratorsDefine an an actor's types, skills and requestsDecorators
ConversationsManaging the conversations of long-running skillsConversation Class
ActorMaking Paranet requestsActor Class
RegistrationMaking Paranet requestsRegistration
Agent RuntimeMaking Paranet requestsConnector
DeploymentMaking Paranet requestsDeployment