A code execution engine
Project description
It's Monolith, a code execution environment. You can run code in a variety of languages (Python / Golang / Cpp / Java / Javascript), and see the output.
Should you have any questions, please don't hesitate to ask mingzhe@nus.edu.sg.
Quickstart
Installation
pip install monolith-lib
Function Calls
from monolith import monolith
monolith = monolith.Monolith(backend_url='https://monolith.cool')
# 1) Submit code to Monolith (POST)
post_response = monolith.post_code_submit(
lang = 'python',
libs = [],
code = 'print("Hello, World!")',
timeout = 10,
profiling = False
)
# 2) Get async task_id from POST response
task_id = post_response['task_id']
# 3) Get code result from Monolith (GET)
get_response = monolith.get_code_result(task_id)
print(get_response)
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
monolith_lib-1.0.2.tar.gz
(2.3 kB
view details)
File details
Details for the file monolith_lib-1.0.2.tar.gz.
File metadata
- Download URL: monolith_lib-1.0.2.tar.gz
- Upload date:
- Size: 2.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
687211711aa592019db7eb6293e3ec0fd402f228a70502e07b57694c0c96c7f5
|
|
| MD5 |
36688174298a1b17484d2384f97a4147
|
|
| BLAKE2b-256 |
ee51af77ff9d0dfa02f5a00c56c793059f26475eeaf14823a67b7d52d2fea0f2
|