Skip to main content

A modern async wrapper for the Picklechat API

Project description

🥒 Picklebot.py

PyPI version License: MIT

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 aiohttp for 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 Picklechat Developer Terms of Service..

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

picklebot_py-0.1.0.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

picklebot_py-0.1.0-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

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

Hashes for picklebot_py-0.1.0.tar.gz
Algorithm Hash digest
SHA256 e5345e3035f32aa4caf639028ee4ae9b0a45a6c2287c2726c8f66f2a433a5a5a
MD5 b74f36df3abd166eaa416c9ad7fe5dfd
BLAKE2b-256 48c897e70bffc2cda130c861495ce8c490668ac3c48d0974f077464b46f2821d

See more details on using hashes here.

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

Hashes for picklebot_py-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4594d84ceb51cacd1e9985df37483384384262542bb89de2380cf17c4d6e75d4
MD5 13ba9719415fad533d6cf2330eae267c
BLAKE2b-256 8a1bf35d8761cdd176c05ec754bc090ea7a52cc691cb88f01e3a524d147d544a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page