Pyston¶
An asynchronous API wrapper for the Piston API.
Note
The documentation of Piston API can be found at https://piston.readthedocs.io/en/latest/api-v2/
Features¶
Modern Pythonic API using
asyncandawait.100% API coverage
Easy to use
Installation¶
Installing from PyPi (recommended)
$ python3 -m pip install aiopyston
$ py -3 -m pip install aiopyston
Installing from source
$ python3 -m pip install git+https://github.com/ffaanngg/pyston.git
$ py -3 -m pip install git+https://github.com/ffaanngg/pyston.git
Basic example
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())
Contents