Skip to content

Latest commit

 

History

History
26 lines (18 loc) · 556 Bytes

README.md

File metadata and controls

26 lines (18 loc) · 556 Bytes

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