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.2

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.2
File Size Uploaded Provenance Actions
nustd-0.9.2.tar.gz 486.1 kB With provenance Details for nustd-0.9.2.tar.gz

Built distribution (wheel)

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

Total release size: 1.1 MB

Release files / nustd-0.9.2.tar.gz

Download URL nustd-0.9.2.tar.gz
Size 486.1 kB
Tags Source
SHA-256 checksum
How to use checksums
bc9b02e3df2e4887bcae5506156a9407c54e0cef86da49177da2aa5f7d87f941
BLAKE2b-256 checksum
How to use checksums
3dbcb193a0ed90b8c55c93af230fb9af4dd138db6f49fa849c66ccd8a4288c5a
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 27, 2026.

Transparency log

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

Download URL nustd-0.9.2-py3-none-any.whl
Size 636.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d5d886535b1f9d47055e2b2a723e7fe5f41e1dc21ef0aa61e9ec501d0209a886
BLAKE2b-256 checksum
How to use checksums
e0736971cc182aceda288a48ac484caaffdc750d791e02d85fb4d01d4d8497b2
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 27, 2026.

Transparency log

Security for nustd 0.9.2

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.2.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 27, 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.2 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