Rubpy
Asynchronous & elegant Python framework for the Rubika API
🏠 Homepage •
📘 Documentation •
📦 Releases •
🗞 News
🌟 Rubpy
Modern. Elegant. Asynchronous.
A clean Pythonic interface to interact with Rubika's API — for both users and bots.
🚀 Async Example
from rubpy.bot import BotClient, filters
app = BotClient("bot_token")
@app.on_update(filters.private)
async def hello(client, message):
await message.reply("Hello from Rubpy!")
app.run()
🚀 Async Example
from rubpy import Client, filters
from rubpy.types import Update
bot = Client(name='rubpy')
@bot.on_message_updates(filters.text)
async def updates(update: Update):
print(update)
await update.reply('`hello` __from__ **rubpy**')
bot.run()
Minimal Async:
from rubpy import Client
import asyncio
async def main():
async with Client(name='rubpy') as bot:
result = await bot.send_message('me', '`hello` __from__ **rubpy**')
print(result)
asyncio.run(main())
⚡ Sync Example
from rubpy import Client
bot = Client('rubpy')
@bot.on_message_updates()
def updates(message):
message.reply('`hello` __from__ **rubpy**')
bot.run()
Minimal Sync:
from rubpy import Client
with Client(name='rubpy') as client:
result = client.send_message('me', '`hello` __from__ **rubpy**')
print(result)
✨ Why Rubpy?
- 📦 Ready — Install with pip and start instantly
- 🧠 Easy — Clean, intuitive, and beginner-friendly
- 💅 Elegant — Beautifully abstracted low-level details
- 🚀 Fast — Powered by high-performance
pycryptodome - 🔁 Async First — Full async design, with sync support
- 💪 Powerful — Everything the official client can do — and more
📦 Installation
pip install -U rubpy
📣 Stay Connected
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
rubpy-7.3.5.tar.gz
(116.4 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
rubpy-7.3.5-py3-none-any.whl
(187.8 kB
view details)
File details
Details for the file rubpy-7.3.5.tar.gz.
File metadata
- Download URL: rubpy-7.3.5.tar.gz
- Upload date:
- Size: 116.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a35067f0c397c0fae02b5a4ddfad985d6d3b2f59af65b06a4f7473c8cf9af3e3
|
|
| MD5 |
a98471d53279007ee5d53e84747e0f14
|
|
| BLAKE2b-256 |
8611623097cb4c53ad0d063204dbc6eda1f04941ca75ab19f028f04f1ea01503
|
File details
Details for the file rubpy-7.3.5-py3-none-any.whl.
File metadata
- Download URL: rubpy-7.3.5-py3-none-any.whl
- Upload date:
- Size: 187.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
322c8d794382b400ef1b067518a5935283998f4d786ff9d054ed40f82897ec91
|
|
| MD5 |
8e1b5bf454ad8800b5c7e0fff178994e
|
|
| BLAKE2b-256 |
306f29428b3377a59118d67d134e4dfd026981d846b8fafc05c3f5a9c1111a6c
|