Skip to main content
nustd

nustd

The nu standard library.

Python PyPI Downloads License

Discord X

Fabrics · Standard library · Install · Reference · nu

Batteries for nu: storage, UI, workers and more, ready to use.

nucore is the kernel: the model, the engine, flows, forms, tree rewrites and nu.mem, the in-memory fabric over plain dicts. Everything that talks to the outside world lives here. One import, then dot-access: import nustd, then nustd.kv, nustd.ui, nustd.uuid.

Fabrics

A fabric binds Refs to a real system. Bind one and every Ref inside the bracket reaches it.

Module What it is Extra
nustd.kv Persistent state over RocksDB, LMDB or SQLite. Transactions, snapshots and change notifications, built in kv
nustd.blob Write-once bytes under an id, stored and streamed by range. On LMDB, plain files or any S3-compatible store blob, blob_s3
nustd.fs A real directory mounted for the span of a tree. Every path stays inside the mount. Atomic writes, file locks across processes -
nustd.ui Widgets as Refs: text, buttons, tables. Rendered in the browser and live-updated as your state changes ui
nustd.mp A pool of local worker processes. Launch workers and run nu trees on them mp
nustd.cluster Teleport a nu tree to any worker in your Ray cluster. It runs there and returns the result cluster
nustd.proxy Puts other fabrics on the network. Bind one in a process, use it from another over TCP or a unix socket proxy
nustd.llm OpenAI-compatible chat and streaming, one wire for OpenAI, Ollama, vLLM, OpenRouter, Groq, xAI and Cerebras llm
nustd.acp Drives coding agents (Claude Code, Codex, Gemini, OpenCode) over the Agent Client Protocol. Agents and sessions are Refs acp
nustd.http HTTP endpoints declared as Refs, called through an httpx client http
nustd.service Exposes a Python object as a nu service: its methods become Refs -
nustd.queue A bounded queue between the event loop and threads queue
nustd.ws_server Serves websocket connections. It owns the connection lifecycle, the session class owns the protocol ws_server
nustd.valkey Runs a private Valkey server, bundled, on a unix socket for the span of a tree. kv uses it for change notifications across processes valkey
nustd.webbrowser Opens a browser tab on a url once a server there answers -

Standard library

Python's standard library, as nu. One module per stdlib module it mirrors, same names and call shape, except a call returns a tree that composes into the rest of the program: math, cmath, random, time, datetime, itertools, functools, asyncio, logging, json, pathlib, uuid, decimal, fractions. Plus fin, nu's own financial value types. No extra needed.

A library whose values can sit in a slot carries the leaves for them, one submodule per fabric: nustd.decimal.mem.DecimalRef for nu.mem, nustd.decimal.kv.DecimalRef for nustd.kv.

Install

Python 3.10 or newer.

pip install "nustd[all]"     # everything
pip install "nustd[kv,ui]"   # just what you need

nucore comes along as a dependency. Released in lockstep with it.

License

Apache-2.0. See LICENSE.md.

Metadata

Release files for nustd 0.9.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for nustd 0.9.1
File Size Uploaded Provenance Actions
nustd-0.9.1.tar.gz 468.3 kB With provenance Details for nustd-0.9.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for nustd 0.9.1
File Interpreter ABI Platform Actions
nustd-0.9.1-py3-none-any.whl Python 3 none any Details for nustd-0.9.1-py3-none-any.whl

Total release size: 1.1 MB

Release files / nustd-0.9.1.tar.gz

Download URL nustd-0.9.1.tar.gz
Size 468.3 kB
Tags Source
SHA-256 checksum
How to use checksums
96779fe631a5bd563705207fbc2e7881e8c94af5834df6bfcb11a2c9a891ec51
BLAKE2b-256 checksum
How to use checksums
31f78c427a58dc153b516f26ecd85e6b8b6e488295233bf3dc3326bd61df7622
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.

Transparency log

Release files / nustd-0.9.1-py3-none-any.whl

Download URL nustd-0.9.1-py3-none-any.whl
Size 617.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
11cc8e70274cc5dd618c3508785f2603452026e734dedce24eabda008ab7dd83
BLAKE2b-256 checksum
How to use checksums
142feae7dd7207caf5a2bee999409311c65c39a755566cc5651c52e3f7d700f4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.

Transparency log

Security for nustd 0.9.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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for nustd-0.9.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.

Transparency log

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.

Release history Release notifications | RSS feed

This release

0.9.1 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page