NRP — Node Reach Protocol
AAP for the physical world.
pip install nrprotocol
NRP implements the AAP spec for physical nodes — robots, IoT sensors, industrial machines, drones, vehicles. 4 methods. Any device.
from nrp import NRPDriver, NRPNode, NRPManifest, NRPAddress, ShieldRule, ShieldOperator
class RobotArm(NRPDriver):
def manifest(self):
return NRPManifest(
address=NRPAddress.parse("nrp://factory-3/robot/arm-7"),
description="6-DOF robot arm",
version="1.0.0",
)
def observe(self): return {"x_mm": 142, "force_n": 0}
def act(self, action, params): return {"ok": True}
def shield_rules(self):
return [
ShieldRule("force_n", ShieldOperator.MAX, max_value=50.0), # structural limit
ShieldRule("z_mm", ShieldOperator.MIN, min_value=0.0), # no floor collision
]
node = NRPNode(RobotArm())
node.execute("grip", {"force_n": 80}) # ShieldViolation: 80N > 50N
node.execute("grip", {"force_n": 25}) # OK — recorded in audit chain
Physical World Rule
Level 4 (Autonomous) is forbidden by AAP spec for physical nodes. NRP enforces this at the driver level. Not configurable. Not overridable. Returns AAP-003.
Address format
nrp://factory-3/robot/arm-7
nrp://farm/sensor/soil-north
nrp://fleet/vehicle/truck-42
nrp://hospital/device/infusion-3
AAP Spec · Halyn · nrprotocol.dev
License: MIT
Metadata
Release files for nrprotocol 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| nrprotocol-1.0.1.tar.gz | 10.2 kB | Without provenance | Details for nrprotocol-1.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| nrprotocol-1.0.1-py3-none-any.whl | Python 3 | none | any | Details for nrprotocol-1.0.1-py3-none-any.whl |
Total release size: 19.7 kB
Release files / nrprotocol-1.0.1.tar.gz
| Download URL | nrprotocol-1.0.1.tar.gz |
|---|---|
| Size | 10.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f59f46c49716b8cc69e397dfd4887e04104f294d6cdfe6e9a4461b4e73d75c6e
|
|
BLAKE2b-256 checksum How to use checksums |
818162c414a0c857dbbf4d194dda34e719dfbf2531304f887f162864d08ded9f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.10.12
|
Release files / nrprotocol-1.0.1-py3-none-any.whl
| Download URL | nrprotocol-1.0.1-py3-none-any.whl |
|---|---|
| Size | 9.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4d3c243f53755b373c2ea1e0fd9529fcfe9b39cf031320c7910c3823a9c647cd
|
|
BLAKE2b-256 checksum How to use checksums |
29a0b5da671d8ffabeb1a4be673c72a62c3c00d9c9f1cd92f399d4f5e72186bd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.10.12
|
Security for nrprotocol 1.0.1
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.