Unofficial Piston API Wrapper for Python
Project description
Piston API Wrapper for Python
This is a very simple API Wrapper for the Piston API.
The Piston API documentation can be found here.
Installation
pip install pistonapi
or
python setup.py build
python setup.py install
Usage Example
from pistonapi import PistonAPI
# Create a new Piston API instance
piston = PistonAPI()
# Get all the supported languages
print(piston.languages)
# OR
print(piston.runtimes)
# Execute your own code!
code = 'print("Hello, World!")'
print(piston.execute(language="py", version="3.9", code=code))
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pistonapi-1.0.tar.gz
(2.2 kB
view hashes)