Python bindings for the glot.io API.
Project description
(Unofficial) Python Bindings for the glot.io API
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
glotio-api-1.0.1.tar.gz
(3.4 kB
view hashes)
Built Distribution
Close
Hashes for glotio_api-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e1d8a184591faf713feef4ef0d17ba1c40b12db20f82a4f5618d0229bc0e3087 |
|
MD5 | 6b726661675cb8a0f0cd7bdba6b49061 |
|
BLAKE2b-256 | 9370730f5e416a2b9e91733ba5076fa1d7823a754682381bf8dfb613aff823ef |