Skip to main content

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

Project description

Rubpy
Rubika API Framework for Python
Homepage Documentation Releases News

Rubpy

Elegant, modern and asynchronous Rubika API framework in Python for users and bots

Using Async

from rubpy import Client, filters, utils
from rubpy.types import Updates

bot = Client(name='rubpy')

@bot.on_message_updates(filters.text)
async def updates(update: Updates):
    await update.reply('`hello` __from__ **rubpy**')

bot.run()

Using 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())

Using Sync

from rubpy import Client

bot = Client('rubpy')

@bot.on_message_updates()
def updates(message):
    message.reply('`hello` __from__ **rubpy**')

bot.run()

Using Sync:

from rubpy import Client

with Client(name='rubpy') as client:
    result = client.send_message('me', '`hello` __from__ **rubpy**')
    print(result)

Rubpy is a modern, elegant and asynchronous framework. It enables you to easily interact with the main Rubika API through a user account (custom client) or a bot identity (bot API alternative) using Python.

Key Features

  • Ready: Install Rubpy with pip and start building your applications right away.
  • Easy: Makes the Rubika API simple and intuitive, while still allowing advanced usages.
  • Elegant: Low-level details are abstracted and re-presented in a more convenient way.
  • Fast: Boosted up by pycryptodome, a high-performance cryptography library written in C.
  • Async: Fully asynchronous (also usable synchronously if wanted, for convenience).
  • Powerful: Full access to Rubika's API to execute any official client action and more.

Installing

pip3 install -U rubpy

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

rumax-0.1b1.tar.gz (73.7 kB view details)

Uploaded Source

File details

Details for the file rumax-0.1b1.tar.gz.

File metadata

  • Download URL: rumax-0.1b1.tar.gz
  • Upload date:
  • Size: 73.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.9

File hashes

Hashes for rumax-0.1b1.tar.gz
Algorithm Hash digest
SHA256 08662bc42c69bcc45427fc77c7de1e2ee86d327f32d64ecb8a1cd95e984ae8e0
MD5 6813bf9aa448fc48e3320826dcfba084
BLAKE2b-256 f694109c3a04aac3d3971f3f625d710ec0588d19864344d75a8da3e298a6d5a2

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