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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
619b3a4afd774aa927417c111f794b2fae7be5acb4e92a48d9e78e9f195d21c3
|
|
| MD5 |
b0e04be0987b810861de197294b9a156
|
|
| BLAKE2b-256 |
06db7ac4e85c658be9e485c5ddcc745f68bd3dc8146365b9d8e89be47e91b74c
|
Provenance
The following attestation bundles were made for remote_box-0.1.0.tar.gz:
Publisher:
release.yml on JasonSteving99/remote-box
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
remote_box-0.1.0.tar.gz -
Subject digest:
619b3a4afd774aa927417c111f794b2fae7be5acb4e92a48d9e78e9f195d21c3 - Sigstore transparency entry: 864520406
- Sigstore integration time:
-
Permalink:
JasonSteving99/remote-box@91f2811e8ab6b7347877192656bb42150ed7e43e -
Branch / Tag:
refs/tags/0.1.0 - Owner: https://github.com/JasonSteving99
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@91f2811e8ab6b7347877192656bb42150ed7e43e -
Trigger Event:
release
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cb4017ef0887352f7dbfe9a0ea75f55fdb6572d1414effaf506d0288610ea137
|
|
| MD5 |
a962becf54a95023badff0ef6ae3bf55
|
|
| BLAKE2b-256 |
857ea1f1e5347079f65cc75b0038aecfc2d39c026a925c1a42cf0010f97d44ae
|
Provenance
The following attestation bundles were made for remote_box-0.1.0-py3-none-any.whl:
Publisher:
release.yml on JasonSteving99/remote-box
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
remote_box-0.1.0-py3-none-any.whl -
Subject digest:
cb4017ef0887352f7dbfe9a0ea75f55fdb6572d1414effaf506d0288610ea137 - Sigstore transparency entry: 864520455
- Sigstore integration time:
-
Permalink:
JasonSteving99/remote-box@91f2811e8ab6b7347877192656bb42150ed7e43e -
Branch / Tag:
refs/tags/0.1.0 - Owner: https://github.com/JasonSteving99
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@91f2811e8ab6b7347877192656bb42150ed7e43e -
Trigger Event:
release
-
Statement type: