Metadata-Version: 2.5
Name: rubipy
Version: 0.1.0
Summary: A modern, async-first Python library for building Rubika bots using the official Bot API
Project-URL: Homepage, https://github.com/example/rubipy
Project-URL: Documentation, https://github.com/example/rubipy
Project-URL: Repository, https://github.com/example/rubipy
Author: Rubipy Contributors
License-Expression: MIT
License-File: LICENSE
Keywords: api,async,bot,messenger,rubika,telegram-like
Classifier: Development Status :: 4 - Beta
Classifier: Framework :: AsyncIO
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Communications :: Chat
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Typing :: Typed
Requires-Python: >=3.10
Requires-Dist: httpx>=0.27.0
Provides-Extra: dev
Requires-Dist: pytest-asyncio>=0.23; extra == 'dev'
Requires-Dist: pytest>=8.0; extra == 'dev'
Requires-Dist: ruff>=0.4; extra == 'dev'
Description-Content-Type: text/markdown

# rubipy

کتابخانه پایتون برای ساخت ربات روبیکا با استفاده از API رسمی.

## نصب

```bash
pip install httpx
pip install .
```

در آینده پس از انتشار روی PyPI:

```bash
pip install rubipy
```

## استفاده سریع

```python
from rubipy import Robot, Update, InlineKeypad

bot = Robot("TOKEN")

@bot.on_message()
async def handler(update: Update):
    if not update.text:
        return

    chat_id = update.chat_id
    text = update.text.strip()

    if text == "/start":
        kb = InlineKeypad.from_buttons(
            [("help", "راهنما"), ("about", "درباره")]
        )
        await bot.send_message(
            chat_id,
            "سلام! ربات آماده است.",
            inline_keypad=kb,
        )
    else:
        await bot.send_message(chat_id, f"شما گفتید:\n{text}")

bot.run()
```

## ویژگی‌ها

- پشتیبانی از API رسمی روبیکا
- Async و Sync
- جلوگیری از پردازش تکراری پیام‌ها
- ساخت آسان کیبورد
- سیستم هندلر ساده

## لایسنس

MIT
