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.2.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.2-py3-none-any.whl (12.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: remote_box-0.1.2.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.2.tar.gz
Algorithm Hash digest
SHA256 4c6f6f4be78804aa8e5a5d591c98fd016fb227ef43389ade7b632452b7584cb4
MD5 764ef23d25f83d5318a4d1e157f88855
BLAKE2b-256 dc4c8d87c6ae6e9d6440b6e99dfdfcb119c6512b38ee6fd04cfdaad441eccb98

See more details on using hashes here.

Provenance

The following attestation bundles were made for remote_box-0.1.2.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.2-py3-none-any.whl.

File metadata

  • Download URL: remote_box-0.1.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 f6d13a47d4e472091f320afa5bfdaea0a5b732c5af35feedbff5cf43f257e81b
MD5 eba79b4866ae9b3317e8b2c2ca87ba44
BLAKE2b-256 4c678f7854484a74f0de0590ec8eeccf966df5706cf5010ff2fb54422d559a89

See more details on using hashes here.

Provenance

The following attestation bundles were made for remote_box-0.1.2-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