Skip to content

shhivv/pyston

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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