Skip to main content

MirrorNeuron Python SDK

Project description

MirrorNeuron Python SDK

The core Python toolkit for building and orchestrating MirrorNeuron multi-agent workflows.

Features

  • Temporal-style Decorators: Define complex graphs intuitively via @workflow.defn, @workflow.run, and @agent.defn.
  • gRPC Client: A lightweight, high-performance Client wrapper abstracting away direct Protobuf interactions with the underlying Elixir core.
  • Unified Foundation: Acts as the shared library powering both the mn-cli and mn-api packages.

Installation

Note: This package is installed automatically by the MirrorNeuron install.sh script.

pip install mirrorneuron-python-sdk

Quick Start

from mn_sdk import agent, workflow, Client

# Define a single agent node
@agent.defn(type="map")
def transform_data(data):
    return data.upper()

# Compose agents into a workflow graph
@workflow.defn(name="DataPipeline")
class DataPipeline:
    @workflow.run
    def execute(self):
        pass # Evaluated to generate manifest.json

# Connect to the core runtime and submit
client = Client(target="localhost:50051")
job_id = client.submit_job(manifest_json="...", payloads={})
print(f"Submitted Job: {job_id}")

Configuration

The SDK remains independently installable and only talks to the core over gRPC. Env vars override constructor defaults:

  • MN_GRPC_TARGET: default target if Client(target=...) is omitted.
  • MN_GRPC_TIMEOUT_SECONDS: per-RPC timeout; 0 or none disables it.
  • MN_GRPC_AUTH_TOKEN: optional bearer metadata.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mirrorneuron_python_sdk-1.0.0.tar.gz (23.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mirrorneuron_python_sdk-1.0.0-py3-none-any.whl (20.8 kB view details)

Uploaded Python 3

File details

Details for the file mirrorneuron_python_sdk-1.0.0.tar.gz.

File metadata

  • Download URL: mirrorneuron_python_sdk-1.0.0.tar.gz
  • Upload date:
  • Size: 23.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for mirrorneuron_python_sdk-1.0.0.tar.gz
Algorithm Hash digest
SHA256 08e189b6ea604e0946054d071e4242948c21f2e2b8986a259419e715ed9b25fd
MD5 085cdbe6a5c9929e85dd98eba9719764
BLAKE2b-256 a42ba6126f4c4032d04e833685b7e58cad0fff2c798ea9b4353041e9d5711d91

See more details on using hashes here.

Provenance

The following attestation bundles were made for mirrorneuron_python_sdk-1.0.0.tar.gz:

Publisher: release.yml on MirrorNeuronLab/mn-python-sdk

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file mirrorneuron_python_sdk-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for mirrorneuron_python_sdk-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 14a2b8b9aba6cd3b2e625d7b76039055372ba9cad4b3cc914779a511fb11e61f
MD5 c07e9c130ba335bf8d816f37ee9fe05a
BLAKE2b-256 e2f45d4c0632ed795198f0152dfe604db442bb9bd549cf3b3ea26d14a9cecf34

See more details on using hashes here.

Provenance

The following attestation bundles were made for mirrorneuron_python_sdk-1.0.0-py3-none-any.whl:

Publisher: release.yml on MirrorNeuronLab/mn-python-sdk

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page