agentix-deployment-e2b 0.1.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Agentiix
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: agentix-deployment-e2b
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: E2B deployment backend for Agentix
|
|
5
|
+
Project-URL: Homepage, https://github.com/Agentiix/Agentix-Deployment-E2B
|
|
6
|
+
Author: Agentiix
|
|
7
|
+
License: MIT
|
|
8
|
+
License-File: LICENSE
|
|
9
|
+
Requires-Python: >=3.11
|
|
10
|
+
Requires-Dist: agentix>=0.1.0
|
|
11
|
+
Provides-Extra: dev
|
|
12
|
+
Requires-Dist: pyright>=1.1.380; extra == 'dev'
|
|
13
|
+
Requires-Dist: pytest-asyncio>=0.23; extra == 'dev'
|
|
14
|
+
Requires-Dist: pytest>=8; extra == 'dev'
|
|
15
|
+
Requires-Dist: ruff>=0.6; extra == 'dev'
|
|
16
|
+
Description-Content-Type: text/markdown
|
|
17
|
+
|
|
18
|
+
# agentix-deployment-e2b
|
|
19
|
+
|
|
20
|
+
[E2B](https://e2b.dev/) deployment backend for
|
|
21
|
+
[Agentix](https://github.com/Agentiix/Agentix).
|
|
22
|
+
|
|
23
|
+
> Status: CLI surface in place; the managed-sandbox integration is
|
|
24
|
+
> still a stub. Tracking parity with `DockerDeployment` (live runtime
|
|
25
|
+
> URL, `lifecycle()` context manager) before promoting to a 1.0
|
|
26
|
+
> release.
|
|
27
|
+
|
|
28
|
+
## Install
|
|
29
|
+
|
|
30
|
+
```bash
|
|
31
|
+
pip install agentix-deployment-e2b
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
Set `E2B_API_KEY` in the environment.
|
|
35
|
+
|
|
36
|
+
## Use
|
|
37
|
+
|
|
38
|
+
```bash
|
|
39
|
+
agentix deploy e2b --image my-agent:0.1.0
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
```python
|
|
43
|
+
from agentix import RuntimeClient, SandboxConfig
|
|
44
|
+
from agentix.deployment.e2b import E2BDeployment
|
|
45
|
+
|
|
46
|
+
async with E2BDeployment().lifecycle(
|
|
47
|
+
SandboxConfig(image="my-agent:0.1.0")
|
|
48
|
+
) as sandbox:
|
|
49
|
+
async with RuntimeClient(sandbox.runtime_url) as c:
|
|
50
|
+
...
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
## License
|
|
54
|
+
|
|
55
|
+
MIT — see [LICENSE](LICENSE).
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# agentix-deployment-e2b
|
|
2
|
+
|
|
3
|
+
[E2B](https://e2b.dev/) deployment backend for
|
|
4
|
+
[Agentix](https://github.com/Agentiix/Agentix).
|
|
5
|
+
|
|
6
|
+
> Status: CLI surface in place; the managed-sandbox integration is
|
|
7
|
+
> still a stub. Tracking parity with `DockerDeployment` (live runtime
|
|
8
|
+
> URL, `lifecycle()` context manager) before promoting to a 1.0
|
|
9
|
+
> release.
|
|
10
|
+
|
|
11
|
+
## Install
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
pip install agentix-deployment-e2b
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
Set `E2B_API_KEY` in the environment.
|
|
18
|
+
|
|
19
|
+
## Use
|
|
20
|
+
|
|
21
|
+
```bash
|
|
22
|
+
agentix deploy e2b --image my-agent:0.1.0
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
```python
|
|
26
|
+
from agentix import RuntimeClient, SandboxConfig
|
|
27
|
+
from agentix.deployment.e2b import E2BDeployment
|
|
28
|
+
|
|
29
|
+
async with E2BDeployment().lifecycle(
|
|
30
|
+
SandboxConfig(image="my-agent:0.1.0")
|
|
31
|
+
) as sandbox:
|
|
32
|
+
async with RuntimeClient(sandbox.runtime_url) as c:
|
|
33
|
+
...
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
## License
|
|
37
|
+
|
|
38
|
+
MIT — see [LICENSE](LICENSE).
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"""E2B deployment backend — stub.
|
|
2
|
+
|
|
3
|
+
E2B (https://e2b.dev/) hosts ephemeral sandboxes seeded by their own
|
|
4
|
+
"template" image format. A bundle image needs to be published as an
|
|
5
|
+
E2B template (`e2b template build`) before it can be deployed here.
|
|
6
|
+
The class exists so `agentix deploy e2b` fails with a clear error
|
|
7
|
+
and so callers can write code against the real Protocol contract.
|
|
8
|
+
|
|
9
|
+
Config comes from env: `E2B_API_KEY` and `E2B_TEMPLATE_ID`. No
|
|
10
|
+
constructor arguments — plugin loaders instantiate this with `cls()`.
|
|
11
|
+
"""
|
|
12
|
+
|
|
13
|
+
from __future__ import annotations
|
|
14
|
+
|
|
15
|
+
import os
|
|
16
|
+
|
|
17
|
+
from agentix.deployment.base import Sandbox
|
|
18
|
+
from agentix.idents import SandboxId
|
|
19
|
+
from agentix.models import SandboxConfig, SandboxInfo
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
class E2BDeployment:
|
|
23
|
+
"""Sandbox CRUD via E2B (pending integration)."""
|
|
24
|
+
|
|
25
|
+
def __init__(self) -> None:
|
|
26
|
+
self._api_key = os.environ.get("E2B_API_KEY")
|
|
27
|
+
self._template_id = os.environ.get("E2B_TEMPLATE_ID")
|
|
28
|
+
|
|
29
|
+
async def create(self, config: SandboxConfig) -> Sandbox: # noqa: ARG002
|
|
30
|
+
raise NotImplementedError(
|
|
31
|
+
"E2BDeployment is not wired yet. E2B's template system means a "
|
|
32
|
+
"bundle image has to be published as a template first; the "
|
|
33
|
+
"build pipeline + API integration are on the deploy roadmap."
|
|
34
|
+
)
|
|
35
|
+
|
|
36
|
+
async def delete(self, sandbox_id: SandboxId) -> None: # noqa: ARG002
|
|
37
|
+
raise NotImplementedError("E2BDeployment.delete: see create()")
|
|
38
|
+
|
|
39
|
+
async def get(self, sandbox_id: SandboxId) -> SandboxInfo: # noqa: ARG002
|
|
40
|
+
raise NotImplementedError("E2BDeployment.get: see create()")
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["hatchling"]
|
|
3
|
+
build-backend = "hatchling.build"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "agentix-deployment-e2b"
|
|
7
|
+
version = "0.1.0"
|
|
8
|
+
description = "E2B deployment backend for Agentix"
|
|
9
|
+
readme = "README.md"
|
|
10
|
+
requires-python = ">=3.11"
|
|
11
|
+
license = { text = "MIT" }
|
|
12
|
+
authors = [{ name = "Agentiix" }]
|
|
13
|
+
urls = { Homepage = "https://github.com/Agentiix/Agentix-Deployment-E2B" }
|
|
14
|
+
dependencies = [
|
|
15
|
+
"agentix>=0.1.0",
|
|
16
|
+
]
|
|
17
|
+
|
|
18
|
+
[project.optional-dependencies]
|
|
19
|
+
dev = [
|
|
20
|
+
"pytest>=8",
|
|
21
|
+
"pytest-asyncio>=0.23",
|
|
22
|
+
"ruff>=0.6",
|
|
23
|
+
"pyright>=1.1.380",
|
|
24
|
+
]
|
|
25
|
+
|
|
26
|
+
[project.entry-points."agentix.deployment"]
|
|
27
|
+
e2b = "agentix.deployment.e2b:E2BDeployment"
|
|
28
|
+
|
|
29
|
+
[tool.hatch.build.targets.wheel]
|
|
30
|
+
packages = ["agentix"]
|
|
31
|
+
|
|
32
|
+
[tool.ruff]
|
|
33
|
+
line-length = 120
|
|
34
|
+
target-version = "py311"
|
|
35
|
+
|
|
36
|
+
[tool.ruff.lint]
|
|
37
|
+
select = ["E", "F", "I", "W", "UP"]
|
|
38
|
+
|
|
39
|
+
[tool.pyright]
|
|
40
|
+
include = ["agentix"]
|
|
41
|
+
exclude = ["**/__pycache__", ".venv"]
|
|
42
|
+
typeCheckingMode = "basic"
|
|
43
|
+
pythonVersion = "3.11"
|
|
44
|
+
|
|
45
|
+
[tool.pytest.ini_options]
|
|
46
|
+
asyncio_mode = "auto"
|