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-0.1.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-0.1.0.tar.gz.
File metadata
- Download URL: yaso_paste-0.1.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 |
d942732eecb5690251033f0a1e79e247b0f1c4de9dc40419c7cce70697242f65
|
|
| MD5 |
4f80da08b597becfa39323a82aa0fe48
|
|
| BLAKE2b-256 |
535ae32a08327033e91bd6a0847a0acbbe361340090e3c698e19360576ed8b69
|
File details
Details for the file yaso_paste-0.1.0-py3-none-any.whl.
File metadata
- Download URL: yaso_paste-0.1.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 |
3b537bc2bfe46dcb6460405af1316815f718642ab7bec25ef2d47253706775c3
|
|
| MD5 |
b84fd15e4bc69a85870acf600b3f03eb
|
|
| BLAKE2b-256 |
8322c0272721bc38446f47326932445012dee683e262f91cbbd92774519cd59e
|