Skip to main content

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, interest first checks local data, and if not found, fetches it over the NDN network transparently.

Requirements

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

ndnc-0.0.6.tar.gz (11.2 kB view details)

Uploaded Source

Built Distribution

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

ndnc-0.0.6-py3-none-any.whl (11.5 kB view details)

Uploaded Python 3

File details

Details for the file ndnc-0.0.6.tar.gz.

File metadata

  • Download URL: ndnc-0.0.6.tar.gz
  • Upload date:
  • Size: 11.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for ndnc-0.0.6.tar.gz
Algorithm Hash digest
SHA256 be2169136296382df2fa83dd02045c07556fd926ac63400764ba414f0f5fe943
MD5 68ccadaf4a3dbabf55f662c6d9f226aa
BLAKE2b-256 84e151e778e3c384cc978c28d06ce2231179a836be5cba5fc57da50935ff2060

See more details on using hashes here.

File details

Details for the file ndnc-0.0.6-py3-none-any.whl.

File metadata

  • Download URL: ndnc-0.0.6-py3-none-any.whl
  • Upload date:
  • Size: 11.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for ndnc-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 9c98b1f8adf00ae1e5b421d113c5ac32224ef258792624f54a090a77d8072864
MD5 c1907e1d236c420f7a7a628f31510727
BLAKE2b-256 545cb7a657ea70d6799e5ebaea6bcf760153df66a6526c3511d5b549d41d4c4c

See more details on using hashes here.

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