Skip to main content

A stack-VM scripting language and distributed workflow runtime

Project description

Nodus

pip install nodus-lang
nodus init
nodus run
nodus repl

Nodus is a scripting language runtime with a packaged CLI for project execution, standalone scripts, and interactive use.

Install

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))

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

nodus_lang-1.1.2-py3-none-any.whl (194.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: nodus_lang-1.1.2-py3-none-any.whl
  • Upload date:
  • Size: 194.9 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-1.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 3a373b22eda8403500e759083b794f3102e6e6b3b473abf773282af26475db56
MD5 017a1f9e794973b01e749c5466fd54d2
BLAKE2b-256 4a51a11878f16e0e6500a8767376c6e2b68bddfa4956882073f64ea4b453b602

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