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)
Release files for monolith-lib 1.0.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| monolith_lib-1.0.6.tar.gz | 2.4 kB | Details |
Release files / monolith_lib-1.0.6.tar.gz
| Download URL | monolith_lib-1.0.6.tar.gz |
|---|---|
| Size | 2.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3c586db94f0b1c858b650dc0f822ab13b573ac4b92d2fa3be4e6b1c5d3a73360
|
|
BLAKE2b-256 checksum How to use checksums |
ba0d4d8ff13b70c6bce450be78e1636608cd7bf774ff697b28b3239c4367c776
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.8
|