Skip to content

Nodus Python SDK (pip install nodus-compute).

The high-level interface provides App, @app.function with .remote(), .spawn() and .map(), @app.cls, Image, Volume, Secret, Sandbox, Job, Sweep, Workspace, Agent, nodus.llm and @nodus.clustered. nodus.api provides a generic client for every resource. Every blocking call also has an .aio form for asyncio code (await f.remote.aio(x)). Errors are in nodus.errors.

Submodules load on first attribute access, so import nodus stays fast and in-container helpers such as nodus.progress pull in nothing they do not need.

  • Agent: import with from nodus import Agent
  • AgentGroup: import with from nodus import AgentGroup
  • AgentRun: import with from nodus import AgentRun
  • App: import with from nodus import App
  • ClaudeAgent: import with from nodus import ClaudeAgent
  • Client: import with from nodus import Client
  • Cls: import with from nodus import Cls
  • Distributed: import with from nodus import Distributed
  • Egress: import with from nodus import Egress
  • Function: import with from nodus import Function
  • FunctionCall: import with from nodus import FunctionCall
  • GPU: import with from nodus import GPU
  • Image: import with from nodus import Image
  • InferenceEndpoint: import with from nodus import InferenceEndpoint
  • Init: import with from nodus import Init
  • Job: import with from nodus import Job
  • ModelAgent: import with from nodus import ModelAgent
  • Process: import with from nodus import Process
  • Retries: import with from nodus import Retries
  • RunContext: import with from nodus import RunContext
  • Sandbox: import with from nodus import Sandbox
  • Secret: import with from nodus import Secret
  • Service: import with from nodus import Service
  • Sweep: import with from nodus import Sweep
  • TrainingJob: import with from nodus import TrainingJob
  • Tunnel: import with from nodus import Tunnel
  • Volume: import with from nodus import Volume
  • Workspace: import with from nodus import Workspace
  • clustered: import with from nodus import clustered
  • enter: import with from nodus import enter
  • exit: import with from nodus import exit
  • method: import with from nodus import method
  • progress: import with from nodus import progress
  • restored: import with from nodus import restored
  • self: import with from nodus import self
  • state_dir: import with from nodus import state_dir