Socket
Book a DemoInstallSign in
Socket

rubpy

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rubpy

A powerful, fast and optimal library for making robots in Rubika with sync and async support.

7.1.23
pipPyPI
Maintainers
1

Rubpy Logo

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

Keywords

rubika

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.