novita-sandbox 2.1.1


pip install novita-sandbox

  Latest version

Released: Sep 08, 2026


Meta
Author: Novita
Maintainer: Novita
Requires Python: >=3.9

Classifiers

Development Status
  • 3 - Alpha

Intended Audience
  • Developers

License
  • OSI Approved :: MIT License

Operating System
  • OS Independent

Programming Language
  • Python :: 3
  • Python :: 3.9
  • Python :: 3.10
  • Python :: 3.11
  • Python :: 3.12

Topic
  • Scientific/Engineering :: Artificial Intelligence
  • Software Development :: Libraries :: Python Modules
  • System :: Operating System

Novita Agent Sandbox SDK for Python

A Python SDK for Novita Agent Sandbox environments that provides code execution, desktop automation, and cloud computing capabilities..

๐Ÿ“– Documentation โ€ข ๐Ÿ”‘ Get API Key

Features

  • Code Interpreter: Execute Python, JavaScript, and other languages in isolated environments
  • Desktop Automation: Control desktop applications and GUI interactions
  • Cloud Computing: Scalable sandbox environments for various computing tasks
  • Data Visualization: Built-in charting and visualization capabilities
  • File System Operations: Complete file system management and monitoring

Installation

pip install novita-sandbox
pip install novita-sandbox[runtime]
pip install novita-sandbox[code-interpreter]
pip install novita-sandbox[desktop]
pip install novita-sandbox[all]

runtime is for users who only need Agent Runtime-related features; all includes every optional dependency.

Quick Start

Authentication

Get your Novita API key from the key management page.

Core Sandbox

Use the high-level Novita client to share one set of credentials across namespaces.

import os
from novita_sandbox import Novita

novita = Novita(api_key=os.getenv("NOVITA_API_KEY", ""))

# Using the official template `base` by default
sandbox = novita.sandbox.create("base")

# File operations
sandbox.files.write('/tmp/test.txt', 'Hello, World!')
content = sandbox.files.read('/tmp/test.txt')

# Command execution
result = sandbox.commands.run('ls -la /tmp')
print(result.stdout)

sandbox.kill()

Code Interpreter

The Code Interpreter sandbox is available through the same client.

import os
from novita_sandbox import Novita

novita = Novita(api_key=os.getenv("NOVITA_API_KEY", ""))

sandbox = novita.code_interpreter.create()

# Execute Python code
result = sandbox.run_code('print("Hello, World!")')
print(result.logs)

sandbox.kill()

Desktop Automation

The Desktop sandbox is available through the same client.

import os
from novita_sandbox import Novita

novita = Novita(api_key=os.getenv("NOVITA_API_KEY", ""))

desktop = novita.desktop.create()

# Take a screenshot
screenshot = desktop.screenshot()

# Automate mouse and keyboard
desktop.left_click(100, 200)
desktop.press('Return')
desktop.write('Hello, World!')

desktop.kill()

Documentation

For comprehensive guides, API references, and examples, visit our official documentation.

Development

Install

poetry install --with dev --extras "all" 

Test

make test
make test-core
make test-code-interpreter
make test-desktop
2.1.1 Sep 08, 2026
2.1.1a3 Sep 22, 2026
2.1.1a2 Sep 22, 2026
2.1.1a1 Sep 10, 2026
2.1.0 Aug 12, 2026
2.1.0a7 Sep 07, 2026
2.1.0a6 Sep 07, 2026
2.1.0a5 Sep 01, 2026
2.1.0a4 Aug 31, 2026
2.1.0a3 Aug 27, 2026
2.1.0a2 Aug 27, 2026
2.1.0a1 Aug 11, 2026
2.0.9 Aug 11, 2026
2.0.9a3 Aug 07, 2026
2.0.9a2 Aug 04, 2026
2.0.9a1 Aug 03, 2026
2.0.8 Jul 27, 2026
2.0.8a2 Jul 22, 2026
2.0.8a1 Jul 14, 2026
2.0.7 Jul 10, 2026
2.0.7a3 Jul 09, 2026
2.0.7a2 Jul 08, 2026
2.0.7a1 Jul 03, 2026
2.0.6 Jul 01, 2026
2.0.6a4 Jun 30, 2026
2.0.6a2 Jun 26, 2026
2.0.6a1 Jun 23, 2026
2.0.5 Jun 23, 2026
2.0.5a2 Jun 22, 2026
2.0.5a1 Jun 15, 2026
2.0.4a1 Jun 15, 2026
2.0.3 Jun 15, 2026
2.0.3a1 Jun 11, 2026
2.0.2 Jun 09, 2026
2.0.1 Jun 08, 2026
2.0.1a1 May 26, 2026
2.0.0a4 May 26, 2026
2.0.0a3 May 19, 2026
2.0.0a2 May 06, 2026
2.0.0a1 Apr 28, 2026
1.2.7b1 Aug 15, 2026
1.2.6a1 Aug 14, 2026
1.2.5b2 May 25, 2026
1.2.5b1 May 06, 2026
1.2.4b1 Apr 02, 2026
1.2.4a4 Apr 01, 2026
1.2.4a3 Apr 01, 2026
1.2.4a2 Mar 29, 2026
1.2.4a1 Mar 24, 2026
1.2.3b1 Mar 06, 2026
1.2.2b2 Mar 05, 2026
1.2.2b1 Mar 05, 2026
1.2.1b1 Mar 04, 2026
1.2.1a1 Mar 03, 2026
1.2.0b1 Feb 11, 2026
1.1.0b1 Nov 27, 2025
1.1.0a2 Nov 27, 2025
1.1.0a1 Nov 27, 2025
1.0.5 Mar 05, 2026
1.0.5b4 Oct 31, 2025
1.0.5b3 Oct 11, 2025
1.0.5b2 Sep 28, 2025
1.0.5b1 Sep 23, 2025
1.0.5a5 Oct 29, 2025
1.0.5a4 Sep 23, 2025
1.0.5a3 Sep 22, 2025
1.0.5a2 Sep 17, 2025
1.0.5a1 Sep 17, 2025
1.0.4 Sep 11, 2025
1.0.4b2 Sep 11, 2025
1.0.4b1 Sep 05, 2025
1.0.3 Sep 05, 2025
1.0.2 Sep 04, 2025

Wheel compatibility matrix

Platform Python 3
any

Files in release