Add your description here
Project description
Usage
MCP Server (stdio)
uv run tabaka-mcp/tabaka.py run --mode stdio
MCP Server (sse)
uv run tabaka-mcp/tabaka.py run --mode=sse
Using as Library
if __name__ == "__main__":
container_name_prefix = "tabaka-sandbox-test-"
sandbox = Tabaka(
config=TabakaConfig(allowed_languages=["python", "go"])
)
result = sandbox.execute_code(
"""import time\nprint("Hello, World!")\nprint("Hello, World!")\nprint(5*9*44+4)""",
language_id="python",
timeout=5,
)
print(result)
result = sandbox.execute_code(
"""
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
print(np.random.randint(1, 100))
print(np.__version__)
print(pd.__version__)
""",
language_id="python",
timeout=10,
required_packages=["pandas", "numpy", "matplotlib"],
)
print("\nResult:\n", result)
# Cleanup the sandbox
sandbox.cleanup()
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
tabaka-0.1.2.tar.gz
(1.5 kB
view details)
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 tabaka-0.1.2.tar.gz.
File metadata
- Download URL: tabaka-0.1.2.tar.gz
- Upload date:
- Size: 1.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
affc842bae9a2f5faef181919150773d94328e4e5fd1e2b41ce3f66250e5f365
|
|
| MD5 |
e70c040a470106826ba806659405e052
|
|
| BLAKE2b-256 |
31f05d8ee17c015706cf4af1a18922e997468def2c572441e0b9e5bfffbdc100
|
File details
Details for the file tabaka-0.1.2-py3-none-any.whl.
File metadata
- Download URL: tabaka-0.1.2-py3-none-any.whl
- Upload date:
- Size: 1.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e0690d6623b7f2be16ca717e8974f2927a38cd3381dd580eff4032d5ca488c03
|
|
| MD5 |
951fc757354f799b83c69925019570c5
|
|
| BLAKE2b-256 |
0afa4695b1e8ad99f4987afdd9d86c1c608325aeeb6c86387080d127e5607318
|