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

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

File details

Details for the file pistonapi-1.0.1.tar.gz.

File metadata

  • Download URL: pistonapi-1.0.1.tar.gz
  • Upload date:
  • Size: 2.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4

File hashes

Hashes for pistonapi-1.0.1.tar.gz
Algorithm Hash digest
SHA256 22c43802bb4a62168e4a790e40a29c43825337cc2a6ebecf644ab15962033209
MD5 1b8af85c79b9b1bab236ec779a91bff1
BLAKE2b-256 ac417d1b34a1099a65773b09e49bf4e7a13c3faaf9d5c73ddac4da4550cc521f

See more details on using hashes here.

File details

Details for the file pistonapi-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: pistonapi-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 2.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4

File hashes

Hashes for pistonapi-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9a88fad690cdfd679fa654c83fb8864dcc7779821c2d16d0326343388687dcae
MD5 3f789dec1336e8de01ab78a6bebd881b
BLAKE2b-256 0df17e471dbe3e752acb045e2f035b315a3d18e3be93218bad4d37060f1ded63

See more details on using hashes here.

Supported by

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