Skip to content

thepriyamkalra/pistonapi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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))

About

A very simple API Wrapper for the Piston API

Resources

Stars

Watchers

Forks

Languages