Skip to main content

(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.

Metadata

Release files for glotio-api 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for glotio-api 1.0.1
File Size Uploaded
glotio-api-1.0.1.tar.gz 3.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for glotio-api 1.0.1
File Interpreter ABI Platform
glotio_api-1.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 7.1 kB

Release files / glotio-api-1.0.1.tar.gz

Download URL glotio-api-1.0.1.tar.gz
Size 3.4 kB
Tags Source
SHA-256 checksum
How to use checksums
132e835ba8f668592db0fa23a62debdb5481ed4a7f8f2c0de6d2fdc18e6aee06
BLAKE2b-256 checksum
How to use checksums
9bcc67d0af0e3b6d8e937c544428b376f6545b78166bcc2aff07348a9599e271
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.3.0 pkginfo/1.7.0 requests/2.21.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.0

Release files / glotio_api-1.0.1-py3-none-any.whl

Download URL glotio_api-1.0.1-py3-none-any.whl
Size 3.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e1d8a184591faf713feef4ef0d17ba1c40b12db20f82a4f5618d0229bc0e3087
BLAKE2b-256 checksum
How to use checksums
9370730f5e416a2b9e91733ba5076fa1d7823a754682381bf8dfb613aff823ef
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.3.0 pkginfo/1.7.0 requests/2.21.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.0

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page