-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathpyproject.toml
More file actions
113 lines (104 loc) · 3.06 KB
/
pyproject.toml
File metadata and controls
113 lines (104 loc) · 3.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
[project]
name = "amla-sandbox"
version = "0.1.7"
description = "Capability-based sandboxed runtime for AI agents"
readme = "README.md"
license = {file = "LICENSE"}
authors = [
{name = "Amla Labs", email = "souvik@amlalabs.com"},
]
keywords = ["sandbox", "wasm", "ai", "agents", "security", "capabilities"]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Security",
"Topic :: Software Development :: Libraries :: Python Modules",
]
requires-python = ">=3.11"
dependencies = [
"cryptography>=43.0.0",
"wasmtime>=29.0.0",
]
[project.optional-dependencies]
# Development dependencies (for pip users)
dev = [
"pytest>=8.0.0",
"pytest-asyncio>=0.24.0",
"ruff>=0.8.0",
"pyright>=1.1.390",
]
# CodeAct integration (recommended)
codeact = [
"langgraph-codeact>=0.0.1",
"langchain>=0.3.0",
"langchain-anthropic>=0.3.0",
]
# LangGraph integration (alternative to CodeAct)
langgraph = [
"langgraph>=0.2.0",
"langchain>=0.3.0",
"langchain-core>=0.3.0",
"langchain-anthropic>=0.3.0",
"langchain-openai>=0.3.0",
"python-dotenv>=1.0.0",
]
# All optional dependencies (excludes dev)
all = ["amla-sandbox[codeact,langgraph]"]
[project.urls]
Homepage = "https://github.com/amlalabs/amla-sandbox"
Repository = "https://github.com/amlalabs/amla-sandbox"
Issues = "https://github.com/amlalabs/amla-sandbox/issues"
[project.scripts]
amla-precompile = "amla_sandbox.cli:precompile_main"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = ["src/amla_sandbox"]
# Include the WASM binary blob (not in git, added at release time)
artifacts = ["src/amla_sandbox/_wasm/*.wasm"]
[tool.hatch.build.targets.sdist]
# Include WASM in source distribution too
include = [
"src/",
"tests/",
"README.md",
"LICENSE",
]
[tool.pytest.ini_options]
testpaths = ["tests"]
pythonpath = ["src"]
[tool.pyright]
include = ["src", "tests", "examples"]
# Exclude files that require optional dependencies to type check
exclude = [
"src/amla_sandbox/langgraph.py",
# Benchmarks/evals use external libraries without type stubs (datasets, rlm, etc.)
"examples/benchmarks",
"examples/eval_*",
# Cookbook is in development
"examples/cookbook",
# Agents examples use langchain (optional dependency)
"examples/agents",
# LangGraph examples have incomplete type stubs from langgraph/langchain
"examples/langgraph_*.py",
"examples/quick_start.py",
]
pythonVersion = "3.11"
typeCheckingMode = "strict"
# All warnings are errors - test files use file-level overrides for expected warnings
reportUnknownMemberType = "error"
reportPrivateUsage = "error"
reportUnusedImport = "error"
[dependency-groups]
dev = [
"pytest>=8.0.0",
"pytest-asyncio>=0.24.0",
"ruff>=0.8.0",
"pyright>=1.1.390",
]