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
Clientwrapper abstracting away direct Protobuf interactions with the underlying Elixir core. - Unified Foundation: Acts as the shared library powering both the
mn-cliandmn-apipackages.
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 ifClient(target=...)is omitted.MN_GRPC_TIMEOUT_SECONDS: per-RPC timeout;0ornonedisables it.MN_GRPC_AUTH_TOKEN: optional bearer metadata.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
08e189b6ea604e0946054d071e4242948c21f2e2b8986a259419e715ed9b25fd
|
|
| MD5 |
085cdbe6a5c9929e85dd98eba9719764
|
|
| BLAKE2b-256 |
a42ba6126f4c4032d04e833685b7e58cad0fff2c798ea9b4353041e9d5711d91
|
Provenance
The following attestation bundles were made for mirrorneuron_python_sdk-1.0.0.tar.gz:
Publisher:
release.yml on MirrorNeuronLab/mn-python-sdk
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mirrorneuron_python_sdk-1.0.0.tar.gz -
Subject digest:
08e189b6ea604e0946054d071e4242948c21f2e2b8986a259419e715ed9b25fd - Sigstore transparency entry: 1438991698
- Sigstore integration time:
-
Permalink:
MirrorNeuronLab/mn-python-sdk@dcbe3a7ecf21981e98bb3219f3a447ee3282dd5c -
Branch / Tag:
refs/tags/v1.0.0 - Owner: https://github.com/MirrorNeuronLab
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@dcbe3a7ecf21981e98bb3219f3a447ee3282dd5c -
Trigger Event:
push
-
Statement type:
File details
Details for the file mirrorneuron_python_sdk-1.0.0-py3-none-any.whl.
File metadata
- Download URL: mirrorneuron_python_sdk-1.0.0-py3-none-any.whl
- Upload date:
- Size: 20.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
14a2b8b9aba6cd3b2e625d7b76039055372ba9cad4b3cc914779a511fb11e61f
|
|
| MD5 |
c07e9c130ba335bf8d816f37ee9fe05a
|
|
| BLAKE2b-256 |
e2f45d4c0632ed795198f0152dfe604db442bb9bd549cf3b3ea26d14a9cecf34
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mirrorneuron_python_sdk-1.0.0-py3-none-any.whl -
Subject digest:
14a2b8b9aba6cd3b2e625d7b76039055372ba9cad4b3cc914779a511fb11e61f - Sigstore transparency entry: 1438991712
- Sigstore integration time:
-
Permalink:
MirrorNeuronLab/mn-python-sdk@dcbe3a7ecf21981e98bb3219f3a447ee3282dd5c -
Branch / Tag:
refs/tags/v1.0.0 - Owner: https://github.com/MirrorNeuronLab
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@dcbe3a7ecf21981e98bb3219f3a447ee3282dd5c -
Trigger Event:
push
-
Statement type: