sandboxy 0.0.1__py3-none-any.whl

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.
Files changed (60) hide show
  1. sandboxy/__init__.py +3 -0
  2. sandboxy/agents/__init__.py +21 -0
  3. sandboxy/agents/base.py +66 -0
  4. sandboxy/agents/llm_prompt.py +308 -0
  5. sandboxy/agents/loader.py +222 -0
  6. sandboxy/api/__init__.py +5 -0
  7. sandboxy/api/app.py +76 -0
  8. sandboxy/api/routes/__init__.py +1 -0
  9. sandboxy/api/routes/agents.py +92 -0
  10. sandboxy/api/routes/local.py +1388 -0
  11. sandboxy/api/routes/tools.py +106 -0
  12. sandboxy/cli/__init__.py +1 -0
  13. sandboxy/cli/main.py +1196 -0
  14. sandboxy/cli/type_detector.py +48 -0
  15. sandboxy/config.py +49 -0
  16. sandboxy/core/__init__.py +1 -0
  17. sandboxy/core/async_runner.py +824 -0
  18. sandboxy/core/mdl_parser.py +441 -0
  19. sandboxy/core/runner.py +599 -0
  20. sandboxy/core/safe_eval.py +165 -0
  21. sandboxy/core/state.py +234 -0
  22. sandboxy/datasets/__init__.py +20 -0
  23. sandboxy/datasets/loader.py +193 -0
  24. sandboxy/datasets/runner.py +442 -0
  25. sandboxy/errors.py +166 -0
  26. sandboxy/local/context.py +235 -0
  27. sandboxy/local/results.py +173 -0
  28. sandboxy/logging.py +31 -0
  29. sandboxy/mcp/__init__.py +25 -0
  30. sandboxy/mcp/client.py +360 -0
  31. sandboxy/mcp/wrapper.py +99 -0
  32. sandboxy/providers/__init__.py +34 -0
  33. sandboxy/providers/anthropic_provider.py +271 -0
  34. sandboxy/providers/base.py +123 -0
  35. sandboxy/providers/http_client.py +101 -0
  36. sandboxy/providers/openai_provider.py +282 -0
  37. sandboxy/providers/openrouter.py +958 -0
  38. sandboxy/providers/registry.py +199 -0
  39. sandboxy/scenarios/__init__.py +11 -0
  40. sandboxy/scenarios/comparison.py +491 -0
  41. sandboxy/scenarios/loader.py +262 -0
  42. sandboxy/scenarios/runner.py +468 -0
  43. sandboxy/scenarios/unified.py +1434 -0
  44. sandboxy/session/__init__.py +21 -0
  45. sandboxy/session/manager.py +278 -0
  46. sandboxy/tools/__init__.py +34 -0
  47. sandboxy/tools/base.py +127 -0
  48. sandboxy/tools/loader.py +270 -0
  49. sandboxy/tools/yaml_tools.py +708 -0
  50. sandboxy/ui/__init__.py +27 -0
  51. sandboxy/ui/dist/assets/index-CgAkYWrJ.css +1 -0
  52. sandboxy/ui/dist/assets/index-D4zoGFcr.js +347 -0
  53. sandboxy/ui/dist/index.html +14 -0
  54. sandboxy/utils/__init__.py +3 -0
  55. sandboxy/utils/time.py +20 -0
  56. sandboxy-0.0.1.dist-info/METADATA +241 -0
  57. sandboxy-0.0.1.dist-info/RECORD +60 -0
  58. sandboxy-0.0.1.dist-info/WHEEL +4 -0
  59. sandboxy-0.0.1.dist-info/entry_points.txt +3 -0
  60. sandboxy-0.0.1.dist-info/licenses/LICENSE +201 -0
@@ -0,0 +1,14 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8" />
5
+ <link rel="icon" type="image/svg+xml" href="/vite.svg" />
6
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
7
+ <title>Sandboxy Local</title>
8
+ <script type="module" crossorigin src="/assets/index-D4zoGFcr.js"></script>
9
+ <link rel="stylesheet" crossorigin href="/assets/index-CgAkYWrJ.css">
10
+ </head>
11
+ <body>
12
+ <div id="root"></div>
13
+ </body>
14
+ </html>
@@ -0,0 +1,3 @@
1
+ """Utility modules for Sandboxy."""
2
+
3
+ __all__: list[str] = []
sandboxy/utils/time.py ADDED
@@ -0,0 +1,20 @@
1
+ """Time utilities for Sandboxy.
2
+
3
+ Provides timezone-aware datetime functions to replace deprecated
4
+ datetime.utcnow() calls (deprecated in Python 3.12+).
5
+ """
6
+
7
+ from datetime import UTC, datetime
8
+
9
+
10
+ def utcnow() -> datetime:
11
+ """Get current UTC time as a timezone-aware datetime.
12
+
13
+ This replaces the deprecated datetime.utcnow() with a timezone-aware
14
+ alternative that works correctly in Python 3.12+.
15
+
16
+ Returns:
17
+ Current UTC time as timezone-aware datetime.
18
+
19
+ """
20
+ return datetime.now(UTC)
@@ -0,0 +1,241 @@
1
+ Metadata-Version: 2.4
2
+ Name: sandboxy
3
+ Version: 0.0.1
4
+ Summary: Open-source agent simulation and benchmarking platform
5
+ Project-URL: Homepage, https://github.com/sandboxy-ai/sandboxy
6
+ Project-URL: Repository, https://github.com/sandboxy-ai/sandboxy
7
+ Author: Sandboxy Team
8
+ License-Expression: Apache-2.0
9
+ License-File: LICENSE
10
+ Keywords: agents,ai,benchmarking,llm,simulation
11
+ Classifier: Development Status :: 3 - Alpha
12
+ Classifier: Intended Audience :: Developers
13
+ Classifier: License :: OSI Approved :: Apache Software License
14
+ Classifier: Programming Language :: Python :: 3
15
+ Classifier: Programming Language :: Python :: 3.12
16
+ Classifier: Programming Language :: Python :: 3.13
17
+ Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
18
+ Requires-Python: >=3.12
19
+ Requires-Dist: anthropic>=0.18.0
20
+ Requires-Dist: click>=8.0
21
+ Requires-Dist: fastapi>=0.109.0
22
+ Requires-Dist: httpx>=0.27.0
23
+ Requires-Dist: mcp>=1.0.0
24
+ Requires-Dist: openai>=1.0
25
+ Requires-Dist: pydantic-settings>=2.0
26
+ Requires-Dist: pydantic>=2.0
27
+ Requires-Dist: python-dotenv>=1.0.0
28
+ Requires-Dist: pyyaml>=6.0
29
+ Requires-Dist: simpleeval>=1.0.0
30
+ Requires-Dist: sse-starlette>=1.6.0
31
+ Requires-Dist: uvicorn[standard]>=0.27.0
32
+ Requires-Dist: websockets>=12.0
33
+ Provides-Extra: dev
34
+ Requires-Dist: pytest-asyncio>=0.23.0; extra == 'dev'
35
+ Requires-Dist: pytest-cov>=4.0; extra == 'dev'
36
+ Requires-Dist: pytest-mock>=3.12.0; extra == 'dev'
37
+ Requires-Dist: pytest-timeout>=2.2.0; extra == 'dev'
38
+ Requires-Dist: pytest-xdist>=3.5.0; extra == 'dev'
39
+ Requires-Dist: pytest>=8.0; extra == 'dev'
40
+ Requires-Dist: respx>=0.21.0; extra == 'dev'
41
+ Requires-Dist: ruff>=0.1; extra == 'dev'
42
+ Description-Content-Type: text/markdown
43
+
44
+ # Sandboxy
45
+
46
+ Open-source framework for developing, testing, and benchmarking AI agents in simulated environments.
47
+
48
+ ## What is Sandboxy?
49
+ <img width="1560" height="436" alt="image" src="https://github.com/user-attachments/assets/428fda5f-3078-406c-a99e-59b605d10c12" />
50
+
51
+
52
+ Sandboxy provides a local development environment for building and testing AI agent scenarios. Define scenarios in YAML, run them against any LLM, and evaluate the results.
53
+
54
+ **Use cases:**
55
+ - **Agent Development** - Build and iterate on AI agent behaviors locally
56
+ - **Evaluation & Testing** - Run scenarios against models and score their performance
57
+ - **Dataset Benchmarking** - Test models against datasets of cases with parallel execution
58
+ - **Red-teaming** - Test for prompt injection, policy violations, and edge cases
59
+
60
+ ## Quick Start
61
+
62
+ ### Installation
63
+
64
+ ```bash
65
+ # Using uv (recommended)
66
+ pip install uv
67
+ uv pip install sandboxy
68
+
69
+ # Or with pip
70
+ pip install sandboxy
71
+ ```
72
+
73
+ ### Set up API keys
74
+
75
+ ```bash
76
+ # Add your API key (OpenRouter gives access to 400+ models)
77
+ echo "OPENROUTER_API_KEY=your-key-here" >> .env
78
+ ```
79
+
80
+ ### Initialize a project
81
+
82
+ ```bash
83
+ mkdir my-evals && cd my-evals
84
+ sandboxy init
85
+ ```
86
+
87
+ This creates:
88
+ ```
89
+ my-evals/
90
+ ├── scenarios/ # Your scenario YAML files
91
+ ├── tools/ # Custom tool definitions
92
+ ├── agents/ # Agent configurations (optional)
93
+ ├── datasets/ # Test case datasets
94
+ └── runs/ # Output from runs
95
+ ```
96
+
97
+ ### Run a scenario
98
+
99
+ ```bash
100
+ # Run with a specific model
101
+ sandboxy run scenarios/my_scenario.yml -m openai/gpt-4o
102
+
103
+ # Compare multiple models
104
+ sandboxy run scenarios/my_scenario.yml -m openai/gpt-4o -m anthropic/claude-3.5-sonnet
105
+
106
+ # Run against a dataset
107
+ sandboxy run scenarios/my_scenario.yml --dataset datasets/cases.yml -m openai/gpt-4o
108
+ ```
109
+
110
+ ### Local development UI
111
+
112
+ ```bash
113
+ # Start the local dev server with UI
114
+ sandboxy open
115
+ ```
116
+
117
+ Opens a browser with a local UI for browsing scenarios, running them, and viewing results.
118
+
119
+ ## Writing Scenarios
120
+
121
+ Scenarios are YAML files that define agent interactions:
122
+
123
+ ```yaml
124
+ id: customer-support
125
+ name: "Customer Support Test"
126
+ description: "Test how an agent handles a refund request"
127
+
128
+ system_prompt: |
129
+ You are a customer support agent for TechCo.
130
+ Be helpful but follow company policy.
131
+
132
+ user_prompt: |
133
+ I want a refund for my purchase. Order #12345.
134
+
135
+ # Define tools the agent can use
136
+ tools:
137
+ - name: lookup_order
138
+ description: "Look up order details"
139
+ params:
140
+ order_id:
141
+ type: string
142
+ required: true
143
+ returns: "Order details for {{order_id}}"
144
+
145
+ # Evaluation criteria
146
+ goals:
147
+ - name: acknowledged_request
148
+ description: "Agent acknowledged the refund request"
149
+ check:
150
+ type: contains
151
+ value: "refund"
152
+
153
+ - name: looked_up_order
154
+ description: "Agent used the lookup tool"
155
+ check:
156
+ type: tool_called
157
+ tool: lookup_order
158
+
159
+ scoring:
160
+ max_score: 100
161
+ ```
162
+
163
+ ## CLI Reference
164
+
165
+ ```bash
166
+ # Run scenarios
167
+ sandboxy run <file.yml> -m <model> # Run a scenario
168
+ sandboxy run <file.yml> -m <model> --runs 5 # Multiple runs
169
+ sandboxy run <file.yml> --dataset <data.yml> # Run against dataset
170
+
171
+ # Development
172
+ sandboxy open # Start local UI
173
+ sandboxy serve # API server only (no browser)
174
+ sandboxy init # Initialize project structure
175
+
176
+ # Scaffolding
177
+ sandboxy new scenario <name> # Create scenario template
178
+ sandboxy new tool <name> # Create tool library template
179
+
180
+ # Information
181
+ sandboxy list-models # List available models
182
+ sandboxy list-tools # List available tool libraries
183
+ sandboxy info <file.yml> # Show scenario details
184
+
185
+ # MCP Integration
186
+ sandboxy mcp inspect <command> # Inspect MCP server tools
187
+ sandboxy mcp list # List known MCP servers
188
+ ```
189
+
190
+ ## Models
191
+
192
+ Sandboxy supports 400+ models via OpenRouter, plus direct provider access:
193
+
194
+ ```bash
195
+ # OpenRouter models (recommended)
196
+ sandboxy run scenario.yml -m openai/gpt-4o
197
+ sandboxy run scenario.yml -m anthropic/claude-3.5-sonnet
198
+ sandboxy run scenario.yml -m google/gemini-pro
199
+ sandboxy run scenario.yml -m meta-llama/llama-3-70b
200
+
201
+ # List available models
202
+ sandboxy list-models
203
+ sandboxy list-models --search claude
204
+ sandboxy list-models --free
205
+ ```
206
+
207
+ ## Configuration
208
+
209
+ Environment variables (in `~/.sandboxy/.env` or project `.env`):
210
+
211
+ | Variable | Description |
212
+ |----------|-------------|
213
+ | `OPENROUTER_API_KEY` | OpenRouter API key (400+ models) |
214
+ | `OPENAI_API_KEY` | Direct OpenAI access |
215
+ | `ANTHROPIC_API_KEY` | Direct Anthropic access |
216
+
217
+ ## Project Structure
218
+
219
+ ```
220
+ sandboxy/
221
+ ├── sandboxy/ # Python package
222
+ │ ├── core/ # Runner, state management
223
+ │ ├── scenarios/ # Unified scenario runner
224
+ │ ├── datasets/ # Dataset benchmarking
225
+ │ ├── agents/ # Agent loading and execution
226
+ │ ├── tools/ # Tool loading (YAML tools)
227
+ │ ├── providers/ # LLM provider integrations
228
+ │ ├── api/ # Local dev API server
229
+ │ ├── cli/ # Command-line interface
230
+ │ ├── local/ # Local project context
231
+ │ └── mcp/ # MCP client integration
232
+ └── local-ui/ # Local development UI (React)
233
+ ```
234
+
235
+ ## Contributing
236
+
237
+ Contributions welcome! See [CONTRIBUTING.md](CONTRIBUTING.md).
238
+
239
+ ## License
240
+
241
+ Apache 2.0 - see [LICENSE](LICENSE).
@@ -0,0 +1,60 @@
1
+ sandboxy/__init__.py,sha256=otJ9pG8fAbnCxP9VLPsHLFB8IKcgyvE4ozkH-gh5Oi0,96
2
+ sandboxy/config.py,sha256=xwiFvZIwWag2lXKFNEVULZiyKrtowNWdGX6KSjqI18Y,1106
3
+ sandboxy/errors.py,sha256=uWMm8Ch86Q34Wcq0v0jT8uOR014Kzz5xK_-K6qeEPEY,4127
4
+ sandboxy/logging.py,sha256=-CNLM1pGKdDNhldnS6JR-FHZryLi5lYoLOR058dBmvk,855
5
+ sandboxy/agents/__init__.py,sha256=kjwisTAkRbcfBi8cPk4hQunN88gyjLWcNG8BXvaNDRk,529
6
+ sandboxy/agents/base.py,sha256=LQQCb0nSoh9ubrDhj5_wsDuwZxA2lz7w3x4Vfk7EPiw,1828
7
+ sandboxy/agents/llm_prompt.py,sha256=MqGAFOca0fya-j0j7UQyQjJsQfQ8NqmMAbBc6JTfTqY,10462
8
+ sandboxy/agents/loader.py,sha256=iZJpsrI1o-2lmpWcRnq1gjCYmvCn19mJkhx8U3Y4B3c,6839
9
+ sandboxy/api/__init__.py,sha256=3zw70CGbz3j8rK-8XcuGDx8KNibLfuFuvVEG02OIhek,119
10
+ sandboxy/api/app.py,sha256=Ln3iCw7d42RYZcKbPuQKGuJHZyeXXm_NI1npczL04mw,2091
11
+ sandboxy/api/routes/__init__.py,sha256=CZS3yxK1CtW80ER3mbPqXbGN19HahbLC0Lu4A-8dw8o,31
12
+ sandboxy/api/routes/agents.py,sha256=6LWJT_IAZrRRhBAzReSNsAI9eAp2oCKP7-5LvkZyeGw,2511
13
+ sandboxy/api/routes/local.py,sha256=oCPoYMSVADSG6W7rBJHIv1x7AAn6AqTyRImZj5RAHD4,41973
14
+ sandboxy/api/routes/tools.py,sha256=TPhHBIyo7NNSHWDaaanDfAF1bzqYHT_k1NJ96w8Dw0c,3308
15
+ sandboxy/cli/__init__.py,sha256=WMN-u5rqs1uFuWArGP3crwz2_BXnZg_n6ShWZSSt68g,56
16
+ sandboxy/cli/main.py,sha256=BG9Y83MK9yh4EtLHWT27iugKLB2RneHgkqqIdYhsPmw,38989
17
+ sandboxy/cli/type_detector.py,sha256=WH_xxtmeqeqoYH6oy3voa0_pVL4kjbuRPb3oamaIG-k,1352
18
+ sandboxy/core/__init__.py,sha256=OiBPYPUHF1Jw7qzYHHWqVubTijrQ9D_kazmdYnclHG0,62
19
+ sandboxy/core/async_runner.py,sha256=YsAg3WHnMDwyhenpEl5udLxpVcvkAvYEYH1PAMo70JI,28878
20
+ sandboxy/core/mdl_parser.py,sha256=CYWAIYeXFDquwReNjR5acBSXdEpubXDGkovyr8UD_Fw,13388
21
+ sandboxy/core/runner.py,sha256=WD1bmhV1w0Jnh_V5UWGWCNNeoybEF7MX7vTn22Ca33E,20371
22
+ sandboxy/core/safe_eval.py,sha256=9XpJ9NARWaXuRdt_cnegP0BYWfAZYPbr9sitF2vgVVg,4546
23
+ sandboxy/core/state.py,sha256=RaFix7rq8GyITpSeX7bptn9KfxAak4LpWzUzY0HHJ4o,7866
24
+ sandboxy/datasets/__init__.py,sha256=Y-tRAFP-EM7r2tv9XS6NKcP4hqeAXcN0R_kHTVDrMEo,446
25
+ sandboxy/datasets/loader.py,sha256=LQMuqNGB1Fk3d-1corUmBrmqCLzsVRSOzbSPQl4wFeI,5933
26
+ sandboxy/datasets/runner.py,sha256=vAAWhbXYqmd0TFfHctA7av6GVwJsRhUBKAFrVuiGumg,15160
27
+ sandboxy/local/context.py,sha256=1-rbZ5f_1mDG35HWYDp0Ubmzl6HHuC9QpY4oSpI7yeI,7559
28
+ sandboxy/local/results.py,sha256=kUJsUhU2DMxQj9mnswOYcAUOoDGnEOPOg-mToJR6cEw,4496
29
+ sandboxy/mcp/__init__.py,sha256=lPMuQCVs061tBKlgmU-bzlR_w0lmEQhvHWlDJhvZuiQ,660
30
+ sandboxy/mcp/client.py,sha256=SpaoH2wes2hTtJd8A-6ngFIHdVWoeZJJwt-McFkDIMQ,11797
31
+ sandboxy/mcp/wrapper.py,sha256=v4JmaE0I6FEuYBZEzwchvs_m5l5bJz2zVmiRw00w_4w,3108
32
+ sandboxy/providers/__init__.py,sha256=1Qf1dmkuKjTqHfpGvQcaB1WTN5rHJBzZARWhP-myjoM,874
33
+ sandboxy/providers/anthropic_provider.py,sha256=vwUBd_wRZGlu-R1w4iXkpphpwwS53h0KxoqRdMk_tgk,8779
34
+ sandboxy/providers/base.py,sha256=a3umHX2Jz_pYlvrgaTdWJzd_wk1LS4bu0XXf9g4omrM,3215
35
+ sandboxy/providers/http_client.py,sha256=9iFfXG-XeqDm6iKNSzxvmjWkTcffnpkTnct--Tkr4M8,3171
36
+ sandboxy/providers/openai_provider.py,sha256=G2HKW_GV5jXCMXFb7m1zCiW4JHbcstlN1e5P-trFEg4,8676
37
+ sandboxy/providers/openrouter.py,sha256=cQ9ddfrCNYlXMgiggVQN2BsMTUPtK_ulqoMBJQYvhu4,31932
38
+ sandboxy/providers/registry.py,sha256=as8kiK8rYBUge3qdzhF8BRNhfXo3aH5LVw5G0GM_OFQ,7039
39
+ sandboxy/scenarios/__init__.py,sha256=B8gOx-bCsl8TEFEcI1r9PC490NepprWE7_MauwDs5IQ,308
40
+ sandboxy/scenarios/comparison.py,sha256=DaRmnACdltRdvSEb-VRKT-Wgj-f_bDotiBomUaC7wvw,16426
41
+ sandboxy/scenarios/loader.py,sha256=f0NvIGptHYP41Zt0JPX0Q_eGK9NPR4dTcl0Fyxf7qB4,7844
42
+ sandboxy/scenarios/runner.py,sha256=7b-F3cmiBOrhCdDn7XAZQYwoFPYTRik4YZmn7ZiJEjM,16385
43
+ sandboxy/scenarios/unified.py,sha256=bCsPp2YOOmHMo16awjsI5Kkd9MWN2dOzpRUK2M4X6ck,51719
44
+ sandboxy/session/__init__.py,sha256=ulbakVpkHK9ZdD5y5NeNiGHUMLTJN4LXqDHiKsbAlvs,632
45
+ sandboxy/session/manager.py,sha256=yIpnX29XjEe343ikg6rIGn5lrEbt_JEQUUGBcNg1pP4,9089
46
+ sandboxy/tools/__init__.py,sha256=6SbQiYNIB46zh6r4KbkoNexnmVnoEMnoYvhftpaHyMw,1508
47
+ sandboxy/tools/base.py,sha256=LD7lygRk42MwOEHGf0pCOwFYsfuxOhkKhy3omdjF8fU,3728
48
+ sandboxy/tools/loader.py,sha256=9QSqsexIYtRYcHWp6iyq551mYdODtYhKgR7Ld7vc_vM,8228
49
+ sandboxy/tools/yaml_tools.py,sha256=P8yjckqV3mVHxK6ZtYaeFVBSuQ2nR7__HJSYX_rsjLA,23381
50
+ sandboxy/ui/__init__.py,sha256=iSb6TFb3CjM7chzVl--4cmPaIEOLtXghXChxaR0FJ_Y,608
51
+ sandboxy/ui/dist/index.html,sha256=nDtAFX_vrBg0UoRPySh5L_UVCWMT1i1h9eAvkJJlhXg,461
52
+ sandboxy/ui/dist/assets/index-CgAkYWrJ.css,sha256=sCfwceeJk7hUY1qmEA2oSPwbnHOsM5qXownCFx7Au6E,25834
53
+ sandboxy/ui/dist/assets/index-D4zoGFcr.js,sha256=xxmdveJYaGElKzkOPNVFuMJXKNGeZ3l-nhO-1Lkt5vY,387158
54
+ sandboxy/utils/__init__.py,sha256=lT3hC8XALceDRwUHPInw7bRGodueKQ8JHMgQebPCIxw,61
55
+ sandboxy/utils/time.py,sha256=9w5JEBA_t4mTdThUFBnY4gxzwSYIXcy0QWDIy8j-Xy4,511
56
+ sandboxy-0.0.1.dist-info/METADATA,sha256=sIyjo9uQQT_8JpD75Lyt7tqW6xfeN7DMwFpAu-nbhKQ,7047
57
+ sandboxy-0.0.1.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
58
+ sandboxy-0.0.1.dist-info/entry_points.txt,sha256=RkY2kImLhO74KTbwWB58DO_7pisdAx3GZBoY1BJ1VdE,98
59
+ sandboxy-0.0.1.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
60
+ sandboxy-0.0.1.dist-info/RECORD,,
@@ -0,0 +1,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: hatchling 1.28.0
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
@@ -0,0 +1,3 @@
1
+ [console_scripts]
2
+ sandboxy = sandboxy.cli.main:main
3
+ sandboxy-server = sandboxy.api.app:run_server
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright [yyyy] [name of copyright owner]
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.