/pyston

☁️ An asynchronous API wrapper for the Piston API

Primary LanguagePythonMIT LicenseMIT

Pyston

An asynchronous API wrapper for the Piston API.

Installation

pip install aiopyston

Basic implementation

from pyston import PystonClient, File
import asyncio


async def main():
    client = PystonClient()
    output = await client.execute("python", [File("print('Hello world')")])
    print(output)


loop = asyncio.get_event_loop()
loop.run_until_complete(main())

Check out the documentation for more information