No project description provided
Project description
Dependency
python = "^3.10"
granian = "1.7.6"
fastapi = "0.115.8"
Default port is 8080, if you want change service port, modify file: site-packages/code_exec/controller/api.py
Running service command:
code-exec
Example of API interface:
curl -XPOST '127.0.0.1:8080/api/exec' \
-H 'Content-Type: application/json' \
-d '{
"language": "python",
"inputs":
{
"arg1": "参数1"
},
"code": "import json\ndata = {\"name\": arg1, \"age\": 18}\njson_str = json.dumps(data, ensure_ascii=False)\nresult = {\"data\": json_str}\n"
}'
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
code_exec_hz-1.0.0.tar.gz
(7.4 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 code_exec_hz-1.0.0.tar.gz.
File metadata
- Download URL: code_exec_hz-1.0.0.tar.gz
- Upload date:
- Size: 7.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.4 CPython/3.10.11 Darwin/24.4.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9de116ecd8d9984f7f5161feb4c6a80b97c92408501542e689d6f153ae894e44
|
|
| MD5 |
3fc5e676beaa1f21f35b4808777bd4c2
|
|
| BLAKE2b-256 |
8cdf4ca86951e29972bda8d1effeda4f59fbf81a628b79089c73bf538d170a27
|
File details
Details for the file code_exec_hz-1.0.0-py3-none-any.whl.
File metadata
- Download URL: code_exec_hz-1.0.0-py3-none-any.whl
- Upload date:
- Size: 9.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.4 CPython/3.10.11 Darwin/24.4.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
00cde01b9b4a590471d0fec1aa86defdcb00cc4531b6c098a493ebc09ae0e600
|
|
| MD5 |
afaf083e658952359ce126d7ad7523c2
|
|
| BLAKE2b-256 |
28802a7f736c881dc5a7ef11cbca13e2b6a2ce17bef0fa6506c3ab021e4f3264
|