A modern async wrapper for the Picklechat API
Project description
🥒 Picklebot.py
Picklebot.py is a modern, asynchronous API wrapper for Picklechat.net, designed to move away from clunky, "old school" Flask-based implementations.
✨ Features
- Asynchronous: Built on
aiohttpfor high-performance bot interactions. - Rate-Limit Aware: Automatically handles the 100 req/min limit with smart backoff.
- Type-Safe: Uses Pydantic for robust data validation and IDE autocomplete.
- Simple: No more manual JSON parsing or raw HTTP requests.
🚀 Installation
pip install picklebot.py
🛠️ Quick Start
import asyncio
from picklebot import Picklebot
async def main():
# Initialize your bot
bot = Picklebot(token="YOUR_BOT_TOKEN", bot_id="YOUR_BOT_ID")
# Send a message
response = await bot.send_message(
room_id="room_123",
text="Hello from Picklebot.py! 🥒"
)
print(f"Sent message with ID: {response.messageId}")
await bot.close()
if __name__ == "__main__":
asyncio.run(main())
📜 Legal
This is a community-led library and is not officially affiliated with PickleChat®. By using this library, you agree to abide by the .
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 picklebot_py-0.1.0.tar.gz.
File metadata
- Download URL: picklebot_py-0.1.0.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e5345e3035f32aa4caf639028ee4ae9b0a45a6c2287c2726c8f66f2a433a5a5a
|
|
| MD5 |
b74f36df3abd166eaa416c9ad7fe5dfd
|
|
| BLAKE2b-256 |
48c897e70bffc2cda130c861495ce8c490668ac3c48d0974f077464b46f2821d
|
File details
Details for the file picklebot_py-0.1.0-py3-none-any.whl.
File metadata
- Download URL: picklebot_py-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4594d84ceb51cacd1e9985df37483384384262542bb89de2380cf17c4d6e75d4
|
|
| MD5 |
13ba9719415fad533d6cf2330eae267c
|
|
| BLAKE2b-256 |
8a1bf35d8761cdd176c05ec754bc090ea7a52cc691cb88f01e3a524d147d544a
|