Merge branch 'master' of https://github.com/engineer-man/piston
This commit is contained in:
commit
6e748c614c
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"language": "python",
|
||||
"language": "python2",
|
||||
"version": "2.7.18",
|
||||
"aliases": ["py", "python2"]
|
||||
"aliases": ["py2", "python2"]
|
||||
}
|
||||
|
|
|
@ -0,0 +1,22 @@
|
|||
#!/bin/bash
|
||||
|
||||
PREFIX=$(realpath $(dirname $0))
|
||||
|
||||
mkdir -p build
|
||||
|
||||
cd build
|
||||
|
||||
git clone https://github.com/Yeethon/cyeethon
|
||||
cd cyeethon
|
||||
|
||||
# Building and installing yeethon
|
||||
./configure --prefix "$PREFIX" --with-ensurepip=install
|
||||
make -j$(nproc)
|
||||
make install -j$(nproc)
|
||||
|
||||
# Cleaning up
|
||||
cd ../../ && rm -rf build
|
||||
|
||||
# This is alpha version of python, hence most of the libraries are not compatible with python3.10.0
|
||||
# As a result, they will not be compatible with yeethon3.10 too
|
||||
# bin/pip3 install numpy scipy pandas pycrypto whoosh bcrypt passlib
|
|
@ -0,0 +1,4 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
# Put 'export' statements here for environment variables
|
||||
export PATH=$PWD/bin:$PATH
|
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"language": "yeethon",
|
||||
"version": "3.10.0",
|
||||
"aliases": ["yeethon3"]
|
||||
}
|
|
@ -0,0 +1,3 @@
|
|||
#!/bin/bash
|
||||
|
||||
python3.10 "$@"
|
|
@ -0,0 +1,3 @@
|
|||
li = ["N", "o", "t", "o", "k"]
|
||||
yeet li[:3]
|
||||
print(''.join(x.title() for x in li))
|
|
@ -170,9 +170,9 @@ The container exposes an API on port 2000 by default.
|
|||
This is used by the CLI to carry out running jobs and package management.
|
||||
|
||||
#### Runtimes Endpoint
|
||||
`GET /api/v1/runtimes`
|
||||
`GET /api/v2/runtimes`
|
||||
This endpoint will return the supported languages along with the current version and aliases. To execute
|
||||
code for a particular language using the `/api/v1/execute` endpoint, either the name or one of the aliases must
|
||||
code for a particular language using the `/api/v2/execute` endpoint, either the name or one of the aliases must
|
||||
be provided, along with the version.
|
||||
Multiple versions of the same language may be present at the same time, and may be selected when running a job.
|
||||
```json
|
||||
|
@ -199,7 +199,7 @@ Content-Type: application/json
|
|||
```
|
||||
|
||||
#### Execute Endpoint
|
||||
`POST /api/v1/execute`
|
||||
`POST /api/v2/execute`
|
||||
This endpoint requests execution of some arbitrary code.
|
||||
- `language` (**required**) The language to use for execution, must be a string and must be installed.
|
||||
- `version` (**required**) The version of the language to use for execution, must be a string containing a SemVer selector for the version or the specific version number to use.
|
||||
|
|
Loading…
Reference in New Issue