Skip to content

ashishk1331/Mini-python-playground

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

API

exposed @ localhost:8000

Run the API

run the command,

air

Routes

All routes are prefixed with /api/v1 for the version one API routes.

  1. POST /run It takes the python code as content in the body of the request, and throws out metrics and run of the code.

    sample url,

    {
       "content": "def add(a, b):\n    return a + b\nprint(add(2, 5))"
    }

    eg:

    {
       "error": "",
       "ok": true,
       "output": "7\r\n",
       "time_taken": 8993200,
       "time_units": "ns"
    }

About

Go API for running python code

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published