Menu

Vercel Sandbox Python SDK 1.0 is now available - Vercel
📰

Vercel Sandbox Python SDK 1.0 is now available - Vercel

Vercel News·Scott Trinh·about 1 hour ago
#HyxXtu0K
#vercel#sandbox#python#import#code
Reading 0:00
15s threshold

The Vercel Sandbox Python SDK has reached 1.0, stabilizing its public API and bringing feature parity with the TypeScript SDK. Use it to run AI-generated code, test changes, and analyze datasets in isolated sandboxes from your Python application.

The SDK includes context managers for automatic sandbox cleanup and AnyIO -based async support for asyncio and Trio. For synchronous code, use vercel.sandbox.sync .

Install with uv add 'vercel-sandbox>=1.0' and configure authentication .

import asyncio

from vercel import sandbox

from vercel . sandbox import GitSource

async def main ( ) :

async with sandbox . create_sandbox (

source = GitSource (

url = "https://github.com/your-org/your-repo.git" ,

revision = "your-pr-branch" ,

)

) as box :

await box . run_command (

"uv" ,

[ "run" , "pytest" , "-q" ] ,

check = True ,

)

asyncio .…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.