An all-in-one API wrapper for the Piston API in Python
Project description
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
- API Reference & Guide: https://ultra-piston.readthedocs.io/en/stable/
- PyPI Page: https://pypi.org/project/ultra-piston/
- Github Page: https://github.com/Jiggly-Balls/ultra-piston/
📄 License
This project is licensed under the MIT License. See the LICENSE file for details.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
14a5a8c83748259de6c04a7ea64d467bfa9c7120692169bedcbb790b798469a9
|
|
| MD5 |
79f9b858a23cd3f67bb373ed70370f08
|
|
| BLAKE2b-256 |
d3ba0b00818a6f7d7d6faeb6504f2620c50b83b0eaf31ebd203ae12329651cfe
|
Provenance
The following attestation bundles were made for ultra_piston-1.0.1.tar.gz:
Publisher:
python-publish.yml on Jiggly-Balls/ultra-piston
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ultra_piston-1.0.1.tar.gz -
Subject digest:
14a5a8c83748259de6c04a7ea64d467bfa9c7120692169bedcbb790b798469a9 - Sigstore transparency entry: 715588306
- Sigstore integration time:
-
Permalink:
Jiggly-Balls/ultra-piston@d1228a1443ce53ecbb4056ee97c1fb70c9644e55 -
Branch / Tag:
refs/tags/1.0.1 - Owner: https://github.com/Jiggly-Balls
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@d1228a1443ce53ecbb4056ee97c1fb70c9644e55 -
Trigger Event:
release
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1bc94b78caac6aac97c289bbf3f2043240efd5384c347959d1b0d9a9e1fdfb1f
|
|
| MD5 |
dc47f4f21c1220fbb22c5c125240442c
|
|
| BLAKE2b-256 |
5b71aa0b515bd222365d471f700018199324ff26a7e4bddd467d9089646b0680
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ultra_piston-1.0.1-py3-none-any.whl -
Subject digest:
1bc94b78caac6aac97c289bbf3f2043240efd5384c347959d1b0d9a9e1fdfb1f - Sigstore transparency entry: 715588309
- Sigstore integration time:
-
Permalink:
Jiggly-Balls/ultra-piston@d1228a1443ce53ecbb4056ee97c1fb70c9644e55 -
Branch / Tag:
refs/tags/1.0.1 - Owner: https://github.com/Jiggly-Balls
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@d1228a1443ce53ecbb4056ee97c1fb70c9644e55 -
Trigger Event:
release
-
Statement type: