Skip to main content

A stack-VM scripting language and distributed workflow runtime

Project description

Nodus

CI PyPI License: MIT

pip install nodus-lang
nodus init
nodus run
nodus repl

Nodus is a bytecode-compiled scripting language and runtime created by Shawn Knight as part of the Masterplan Infinite Weave ecosystem. It implements the Infinity Algorithm's execution model as a first-class language construct, expressed through coroutines, task graphs, workflows, and goals on a deterministic stack-based VM.

For a machine-readable project index see llms.txt.

Install

Requires Python 3.10+.

pip install nodus-lang

For the optional FastAPI/Uvicorn server stack:

pip install "nodus-lang[server]"

Quick Start

Create a project:

mkdir my-app
cd my-app
nodus init
nodus run

nodus init creates nodus.toml and src/main.nd.

nodus run executes the current project's src/main.nd when run inside a project root.

Start the REPL:

nodus repl

Useful REPL commands:

  • :help shows REPL commands.
  • :quit exits the REPL.

Run A File

Create hello.nd:

print("hello")

Run it explicitly:

nodus run hello.nd

When you provide a file path, Nodus runs only that file. When you run nodus run with no file inside a project, Nodus runs only src/main.nd.

Common Commands

  • nodus --version
  • nodus run hello.nd
  • nodus run
  • nodus repl
  • nodus check hello.nd
  • nodus check
  • nodus fmt hello.nd

Standard Library

Import standard library modules with the std: prefix:

import "std:math" as math
print(math.abs(-4))

Documentation

<script type="application/ld+json"> { "@context": "https://schema.org", "@type": "SoftwareApplication", "name": "Nodus", "description": "A bytecode-compiled scripting language and distributed workflow runtime implementing the Infinity Algorithm as a first-class language construct.", "author": { "@type": "Person", "name": "Shawn Knight", "url": "https://github.com/Masterplanner25" }, "applicationCategory": "DeveloperApplication", "programmingLanguage": "Python", "operatingSystem": "Linux, macOS, Windows", "url": "https://github.com/Masterplanner25/nodus-lang", "downloadUrl": "https://pypi.org/project/nodus-lang/", "license": "https://spdx.org/licenses/MIT.html", "version": "2.1.0", "softwareRequirements": "Python >= 3.10" } </script>

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

nodus_lang-3.0.1.tar.gz (257.0 kB view details)

Uploaded Source

Built Distribution

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

nodus_lang-3.0.1-py3-none-any.whl (206.7 kB view details)

Uploaded Python 3

File details

Details for the file nodus_lang-3.0.1.tar.gz.

File metadata

  • Download URL: nodus_lang-3.0.1.tar.gz
  • Upload date:
  • Size: 257.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for nodus_lang-3.0.1.tar.gz
Algorithm Hash digest
SHA256 5ae5a6fe72fd150418a7660aff6e2f901bd4f20053acb8073db7c1c0fd772303
MD5 ea278e62aabd58a68d02d96404e54d65
BLAKE2b-256 5b5bcd63e42b6edd30b6428e02030c006f1c24719e57fad9eb8b30c80c3dbe56

See more details on using hashes here.

File details

Details for the file nodus_lang-3.0.1-py3-none-any.whl.

File metadata

  • Download URL: nodus_lang-3.0.1-py3-none-any.whl
  • Upload date:
  • Size: 206.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for nodus_lang-3.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ba8ae9a8f2608f6eefaf22c3fc547a5d8dc8eb5223b4224e7a88a601d47b0788
MD5 26ab4e6f9bc34030593cb47bbed820c4
BLAKE2b-256 041cceb0640fef0698ed4618a39fc6ae9c003f9fc2f0f3edfd90805e4e0c293f

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