glotio-api

Python bindings for the glot.io API.


Keywords
glot, io, api
License
MIT
Install
pip install glotio-api==1.0.1

Documentation

glot.io API for Python

Installation

$ pip install glotio-api

Basic Usage

from glotio import Runner 


g = Runner("[YOUR_API_KEY]")

# language list
print(Runner.get_lang().keys())

g.set_lang("python")
code = "import sys;print(input() + ', ' + sys.argv[1])"
g.set_code(code, filename="main.py")
g.set_stdin("input text")
g.set_command("python3 main.py 'command line argument'")

result = g.run()
print(result)

LICENCE

glotio-api is made available under an MIT License.