Skip to main content

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


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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

glotio_api-1.0.1-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

Details for the file glotio-api-1.0.1.tar.gz.

File metadata

  • Download URL: glotio-api-1.0.1.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for glotio-api-1.0.1.tar.gz
Algorithm Hash digest
SHA256 132e835ba8f668592db0fa23a62debdb5481ed4a7f8f2c0de6d2fdc18e6aee06
MD5 5ff7877813acedc16af4f70b635c9368
BLAKE2b-256 9bcc67d0af0e3b6d8e937c544428b376f6545b78166bcc2aff07348a9599e271

See more details on using hashes here.

File details

Details for the file glotio_api-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: glotio_api-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 3.7 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for glotio_api-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e1d8a184591faf713feef4ef0d17ba1c40b12db20f82a4f5618d0229bc0e3087
MD5 6b726661675cb8a0f0cd7bdba6b49061
BLAKE2b-256 9370730f5e416a2b9e91733ba5076fa1d7823a754682381bf8dfb613aff823ef

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page