Pyston
December 3, 2021 ยท View on GitHub
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())