MirrorNeuron REST API
Project description
MirrorNeuron API
The RESTful HTTP Gateway for the MirrorNeuron distributed runtime system.
Architecture
Built with FastAPI and Uvicorn, this component acts as an HTTP abstraction over the core mn-python-sdk gRPC Client. It allows external microservices, web dashboards, or non-Python applications to easily interact with the MirrorNeuron cluster without speaking Protobuf.
Installation
Note: This API is installed automatically and symlinked globally as mn-api by the MirrorNeuron install.sh script.
pip install mirrorneuron-api
Running the Server
mn-api
This runs the Uvicorn server on port 4001 locally.
Configuration
All overrides use MN_ env vars:
MN_ENV=prodrequiresMN_API_TOKEN.MN_API_HOST,MN_API_PORTcontrol binding; defaultlocalhost:4001.MN_CORE_HOSTcontrols the default core gRPC host; defaultlocalhost.MN_GRPC_TARGETorMN_CORE_GRPC_TARGETcan override the full core gRPC target.MN_GRPC_TIMEOUT_SECONDScontrols SDK calls.MN_API_REQUEST_SIZE_LIMIT_BYTESbounds request bodies.MN_API_CORS_ALLOW_ORIGINSis a comma-separated allowlist.
Protected endpoints accept Authorization: Bearer <MN_API_TOKEN>.
Endpoints
| Method | Route | Description |
|---|---|---|
GET |
/api/v1/health |
Service health check |
GET |
/api/v1/system/summary |
Cluster hardware and pool state |
GET |
/api/v1/metrics |
Runtime metrics summary |
POST |
/api/v1/jobs |
Submit a new workflow via JSON |
GET |
/api/v1/jobs |
List recent workflows |
GET |
/api/v1/jobs/{job_id} |
Fetch workflow status |
GET |
/api/v1/jobs/{job_id}/events |
Fetch job events |
GET |
/api/v1/jobs/{job_id}/dead-letters |
Inspect dead-letter events |
POST |
/api/v1/jobs/{job_id}/cancel |
Cancel a running job |
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_api-1.0.0.tar.gz.
File metadata
- Download URL: mirrorneuron_api-1.0.0.tar.gz
- Upload date:
- Size: 17.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
45e8d96f288a1b97abddb65a81ca00f4711ac5c97a2254165f3470afdbf3b4e0
|
|
| MD5 |
749c0d025d7e256cf6a81da83c1e3328
|
|
| BLAKE2b-256 |
b479f3b31fbb7895bc6f1eb930f60f595fafcccf879fbd364160b27a371c66d9
|
Provenance
The following attestation bundles were made for mirrorneuron_api-1.0.0.tar.gz:
Publisher:
release.yml on MirrorNeuronLab/mn-api
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mirrorneuron_api-1.0.0.tar.gz -
Subject digest:
45e8d96f288a1b97abddb65a81ca00f4711ac5c97a2254165f3470afdbf3b4e0 - Sigstore transparency entry: 1438991901
- Sigstore integration time:
-
Permalink:
MirrorNeuronLab/mn-api@3cf66edc8ac008312003710bc6eee19fb599e489 -
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@3cf66edc8ac008312003710bc6eee19fb599e489 -
Trigger Event:
push
-
Statement type:
File details
Details for the file mirrorneuron_api-1.0.0-py3-none-any.whl.
File metadata
- Download URL: mirrorneuron_api-1.0.0-py3-none-any.whl
- Upload date:
- Size: 9.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 |
c4adeb096efb6e7cd446cbdbccac8c82ce254c843d527cc8d454a6ad17e7b4ac
|
|
| MD5 |
c3eb366b3b7d267f5e6872e0310ee200
|
|
| BLAKE2b-256 |
5357242d138f2baf5e2ce32ebd789e06db51cbe831149dfc91f072e4e4ca9849
|
Provenance
The following attestation bundles were made for mirrorneuron_api-1.0.0-py3-none-any.whl:
Publisher:
release.yml on MirrorNeuronLab/mn-api
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mirrorneuron_api-1.0.0-py3-none-any.whl -
Subject digest:
c4adeb096efb6e7cd446cbdbccac8c82ce254c843d527cc8d454a6ad17e7b4ac - Sigstore transparency entry: 1438991921
- Sigstore integration time:
-
Permalink:
MirrorNeuronLab/mn-api@3cf66edc8ac008312003710bc6eee19fb599e489 -
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@3cf66edc8ac008312003710bc6eee19fb599e489 -
Trigger Event:
push
-
Statement type: