Elegant, modern and asynchronous Rubika API framework in Python for users and bots
Project description
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
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 rubpy-7.3.4.tar.gz.
File metadata
- Download URL: rubpy-7.3.4.tar.gz
- Upload date:
- Size: 116.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b9eaee0c83f33d548d881d98c0600b15f05d21714c75e56252a74a0d10dfed9f
|
|
| MD5 |
5fd5b01a638b5e046320530f7b046c0f
|
|
| BLAKE2b-256 |
142be0ef63c34197d4711c63b45d42e0e22c26411f1c300b93a7dac9754d64f2
|
File details
Details for the file rubpy-7.3.4-py3-none-any.whl.
File metadata
- Download URL: rubpy-7.3.4-py3-none-any.whl
- Upload date:
- Size: 188.1 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 |
0584cff940a204cf1d5269e98ea48fc9c3794183671b23f7737519be76295598
|
|
| MD5 |
fd5cdedc41d38bc2d664c1c6fd65feae
|
|
| BLAKE2b-256 |
3be35a56155964ec7ec920b2a1fd9b283c6103643ecaaab0eb645c3bb9b923e4
|