Pasters
Minimalistic Python client for paste.rs
Share text or code in seconds with one simple call.
✨ Features
- 🌀 Both sync and async APIs
- ⚡ One-liner usage
- 📤 Instant paste URL
- 🐍 Pure Python (depends only on
requestsandhttpx)
📦 Installation
pip install pasters
⚡ Usage
🔹 Sync
from pasters import paste, get_paste, delete_paste
# create paste
url = paste("print('hello world')", ext="py")
print(url) # https://paste.rs/abcd.py
# fetch paste
print(get_paste(url))
# delete paste
delete_paste(url)
🔹 Async
from pasters import apaste, aget_paste, adelete_paste
import asyncio
async def main():
# create paste
url = await apaste("# some markdown text", ext="md")
print(url) # https://paste.rs/efgh.md
# fetch paste
text = await aget_paste(url)
print(text)
# delete paste
await adelete_paste(url)
asyncio.run(main())
API
paste(text, ext='', allow_206=False) -> strapaste(text, ext='', allow_206=False) -> strget_paste(url) -> straget_paste(url) -> strdelete_paste(url) -> Noneadelete_paste(url) -> None
👨💻 Author
Made with ❤️ by @RimMirK
Metadata
Release files for pasters 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pasters-1.0.0.tar.gz | 16.0 kB | Without provenance | Details for pasters-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pasters-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for pasters-1.0.0-py3-none-any.whl |
Total release size: 32.6 kB
Release files / pasters-1.0.0.tar.gz
| Download URL | pasters-1.0.0.tar.gz |
|---|---|
| Size | 16.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7c9f10c4bb52b8cd835821c53f1dd784c07a07a6f59b03f7d381aa0fdcb074a6
|
|
BLAKE2b-256 checksum How to use checksums |
60a5672d06f477ec19962f69b33637ece4ca530d6b7d0cbca94f8cb22bc230c9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Release files / pasters-1.0.0-py3-none-any.whl
| Download URL | pasters-1.0.0-py3-none-any.whl |
|---|---|
| Size | 16.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c2c1899a422f3e1a3c0bc2d1899a5181fb1ae1f65c5a5aecdd88ed14571ed601
|
|
BLAKE2b-256 checksum How to use checksums |
1d23df554f697f256adffab7f443d1191424617a8f26952fe463ad2196cc391f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Security for pasters 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.