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-0.0.5.tar.gz
(2.0 kB
view details)
File details
Details for the file monolith_lib-0.0.5.tar.gz.
File metadata
- Download URL: monolith_lib-0.0.5.tar.gz
- Upload date:
- Size: 2.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e2c1ace8ec1005ebdac2c1f47ddfbd21d3ed7337f4a57e79e4d68ac1d917f2af
|
|
| MD5 |
d31116d64fd9363b1f1f50ac0491567d
|
|
| BLAKE2b-256 |
dca483bc190d8f5d1547d5c46c57477fbdbc40ffcc990fed98a1582d06e0beaa
|