Skip to main content

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


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.1.tar.gz (2.2 kB view hashes)

Uploaded Source

Built Distribution

pistonapi-1.0.1-py3-none-any.whl (2.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page