Simple async Python library to paste text or files to yaso.su
Project description
Async Python library to paste text or files to yaso.su.
Installation
pip install yaso-paste
Usage
Paste raw text
import asyncio
from yaso_paste import paste_to_yaso
async def main():
url = await paste_to_yaso("print('Hello World!')", "py")
print(url)
asyncio.run(main())
Paste file contents
import asyncio
from yaso_paste import paste_to_yaso
async def main():
url = await paste_to_yaso("example.py") # will read file contents
print(url)
asyncio.run(main())
Features
- Paste raw text or file contents.
- Automatically detects file extension if not provided.
- Async, with retries and timeout handling.
- Simple 1-function API:
paste_to_yaso().
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
yaso_paste-3.0.0.tar.gz
(3.2 kB
view details)
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 yaso_paste-3.0.0.tar.gz.
File metadata
- Download URL: yaso_paste-3.0.0.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9a9f5614d3537feb4610fdf4191b65340a5f47d2cbbac301aca2b2775ca18185
|
|
| MD5 |
f22899f92f441641e4103a103a865dd1
|
|
| BLAKE2b-256 |
e9e71f5c76424af6b034e4ba5eaf25395926818afa5d7c9888ad7a25921b3b03
|
File details
Details for the file yaso_paste-3.0.0-py3-none-any.whl.
File metadata
- Download URL: yaso_paste-3.0.0-py3-none-any.whl
- Upload date:
- Size: 3.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fa76e5371bf36d333cf64a2956463d5053b49218be2a868be2f4029108b515a4
|
|
| MD5 |
94621f11e004023f219011965e3c7608
|
|
| BLAKE2b-256 |
b6661e68352d81f8dedf85ebc6154f715c645e695aefe84fe3599e1bc6bc11d1
|