Skip to main content

Type-safe remote Python function execution framework with multiple backend support

Project description

Remote Box

Type-safe remote Python function execution framework with multiple backend support.

Installation

uv add remote-box

Quick Start

Execute Python functions on remote machines with type safety:

from pathlib import Path
from pydantic import BaseModel
from remote import remote, E2B, BackendShell

class Input(BaseModel):
    name: str

class Output(BaseModel):
    greeting: str

@remote(
    local_project_root=Path(__file__).parent,
    backend=E2B(
        shell=BackendShell.BASH4,
        template_prefix="my-project"
    )
)
async def greet(input: Input) -> Output:
    # This code runs on a remote E2B sandbox!
    return Output(greeting=f"Hello {input.name}!")

# Usage
result = await greet(Input(name="World"))
print(result.greeting)  # "Hello World!"

Features

  • Type-safe: Inputs/outputs validated using Pydantic models
  • Multiple backends:
    • E2B - Execute on remote secure sandboxes
    • Subprocess - Local execution for development
  • Async-first: Built on asyncio for high performance
  • Automatic serialization: No manual JSON handling needed

Backends

E2B (Production)

Execute code on remote secure sandboxes via E2B. Perfect for:

  • Running untrusted code safely
  • Scaling compute workloads
  • Isolating execution environments

Subprocess (Development)

Execute code in local subprocesses. Ideal for development and testing.

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

remote_box-0.1.0.tar.gz (44.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

remote_box-0.1.0-py3-none-any.whl (12.4 kB view details)

Uploaded Python 3

File details

Details for the file remote_box-0.1.0.tar.gz.

File metadata

  • Download URL: remote_box-0.1.0.tar.gz
  • Upload date:
  • Size: 44.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for remote_box-0.1.0.tar.gz
Algorithm Hash digest
SHA256 619b3a4afd774aa927417c111f794b2fae7be5acb4e92a48d9e78e9f195d21c3
MD5 b0e04be0987b810861de197294b9a156
BLAKE2b-256 06db7ac4e85c658be9e485c5ddcc745f68bd3dc8146365b9d8e89be47e91b74c

See more details on using hashes here.

Provenance

The following attestation bundles were made for remote_box-0.1.0.tar.gz:

Publisher: release.yml on JasonSteving99/remote-box

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file remote_box-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: remote_box-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 12.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for remote_box-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 cb4017ef0887352f7dbfe9a0ea75f55fdb6572d1414effaf506d0288610ea137
MD5 a962becf54a95023badff0ef6ae3bf55
BLAKE2b-256 857ea1f1e5347079f65cc75b0038aecfc2d39c026a925c1a42cf0010f97d44ae

See more details on using hashes here.

Provenance

The following attestation bundles were made for remote_box-0.1.0-py3-none-any.whl:

Publisher: release.yml on JasonSteving99/remote-box

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page