Skip to main content

An all-in-one API wrapper for the Piston API in Python

Project description

PyPI Github Releases Downloads PyPI Downloads License Docs Versions

Ultra Piston

An all-in-one wrapper for the Piston API in Python.

✨ Features

This library offers robust customization options and essential functionalities, including:

  • Complete 100% API coverage
  • Rich data models
  • Support for both synchronous and asynchronous methods
  • Automatic rate limit handling
  • Pluggable HTTP driver system — implement your own custom driver for handling requests

📦 Requirements & Installation

This library supports python versions 3.10 and higher.

To install ultra-piston via pip-

(.venv) $ pip install ultra_piston

Or by uv-

$ uv add ultra_piston

🚀 Quick Start

from ultra_piston import PistonClient, File

client = PistonClient()

result = client.post_execute(
    language="python3",
    version="3.10.0",
    file=File(content='print("Hello from ultra-piston!")'),
)

print(result.run.output)

Ultra Piston also provides async methods for all the available endpoints! To use the asynchronous variant of a method, simply append _async to the name of its synchronous counterpart.

import asyncio
from ultra_piston import PistonClient, File

client = PistonClient()

async def main():
    result = await client.post_execute_async(
        language="python3",
        version="3.10.0",
        file=File(content='print("Hello from ultra-piston!")'),
    )

    print(result.run.output)

asyncio.run(main())

🔗 Links

📄 License

This project is licensed under the MIT License. See the LICENSE file for details.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ultra_piston-1.0.1.tar.gz (12.5 kB view details)

Uploaded Source

Built Distribution

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

ultra_piston-1.0.1-py3-none-any.whl (12.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ultra_piston-1.0.1.tar.gz
  • Upload date:
  • Size: 12.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for ultra_piston-1.0.1.tar.gz
Algorithm Hash digest
SHA256 14a5a8c83748259de6c04a7ea64d467bfa9c7120692169bedcbb790b798469a9
MD5 79f9b858a23cd3f67bb373ed70370f08
BLAKE2b-256 d3ba0b00818a6f7d7d6faeb6504f2620c50b83b0eaf31ebd203ae12329651cfe

See more details on using hashes here.

Provenance

The following attestation bundles were made for ultra_piston-1.0.1.tar.gz:

Publisher: python-publish.yml on Jiggly-Balls/ultra-piston

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

  • Download URL: ultra_piston-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 12.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for ultra_piston-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1bc94b78caac6aac97c289bbf3f2043240efd5384c347959d1b0d9a9e1fdfb1f
MD5 dc47f4f21c1220fbb22c5c125240442c
BLAKE2b-256 5b71aa0b515bd222365d471f700018199324ff26a7e4bddd467d9089646b0680

See more details on using hashes here.

Provenance

The following attestation bundles were made for ultra_piston-1.0.1-py3-none-any.whl:

Publisher: python-publish.yml on Jiggly-Balls/ultra-piston

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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