A DSL interpreter for transparent distributed execution over NDN
Project description
ndnc
A DSL interpreter for transparent distributed execution over NDN (Named Data Networking).
Write code without thinking about where it runs — local or remote. The system handles it.
Installation
pip install ndnc
Usage
Run a .ndn script
ndnc run path/to/script.ndn
Run with arguments
ndnc run path/to/script.ndn arg0 arg1
Start NDN server (producer)
ndnc serve
Examples
Fetch data by NDN name and print it:
let height = interest "/height/Mt.Fuji/"
print height
Fetch data and convert units with a local function:
let height_m = interest "/height/Mt.Fuji/"
let height_ft = m_to_feet(height_m)
print height_ft
These examples use locally registered data and run without NFD. When NFD and NLSR are running,
interestfirst checks local data, and if not found, fetches it over the NDN network transparently.
Requirements
- Python 3.10+
- python-ndn
NDN Network Requirements
To fetch data or execute functions over an actual NDN network, the following must be running on your machine:
- NFD (NDN Forwarding Daemon) — handles NDN packet forwarding
- NLSR (Named-data Link State Routing) — manages routing between NDN nodes
Without these, interest expressions will fall back to local data only.
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
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 ndnc-0.0.5.tar.gz.
File metadata
- Download URL: ndnc-0.0.5.tar.gz
- Upload date:
- Size: 12.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a43b7cb2ff312cf5fcc363b562528d7c2059ae833b51544145aaf760bb1f3d29
|
|
| MD5 |
e3010286fb85d4172ffaf13b75cad8d4
|
|
| BLAKE2b-256 |
63660bcbebb57f57c0d0b9525509dc2750bdc24fee068bb553fee9d6c313fedc
|
File details
Details for the file ndnc-0.0.5-py3-none-any.whl.
File metadata
- Download URL: ndnc-0.0.5-py3-none-any.whl
- Upload date:
- Size: 14.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7ac57800eb08a40a4c480d669b30113a97af7a5de09e5bd85b27a664752f6817
|
|
| MD5 |
afd43f4b604569c251afc2f8d8b2bb71
|
|
| BLAKE2b-256 |
fa11e8525e6f2b563cac51e4b32e3f485634c75ce7d8d4d4c31afe527ad21ce2
|