novita-sandbox 2.0.8


pip install novita-sandbox

  Latest version

Released: Jul 27, 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

Quick Start

Authentication

Get your Novita API key from the key management page.

Core Sandbox

The basic package provides a way to interact with the sandbox environment.

from novita_sandbox.core import Sandbox
import os

# Using the official template `base` by default
sandbox = Sandbox.create(
    template="base",
    api_key=os.getenv("NOVITA_API_KEY", "")
)

# 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 provides a Jupyter-like environment for executing code using the official code-interpreter-v1 template.

from novita_sandbox.code_interpreter import Sandbox
import os

sandbox = Sandbox.create(
    api_key=os.getenv("NOVITA_API_KEY", "")
)

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

sandbox.kill()

Desktop Automation

The Desktop sandbox allows you to control desktop environments programmatically using the official desktop template.

from novita_sandbox.desktop import Sandbox
import os

desktop = Sandbox.create(
    api_key=os.getenv("NOVITA_API_KEY", "")
)

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