This is an unofficial library and fastest library for deploying robots on Rubika accounts.
Project description
Rubika API Framework for Python
Homepage
•
Documentation
•
Releases
•
News
Rubpy
Elegant, modern and asynchronous Rubika API framework in Python for users and bots
Bots Examples
from rubpy import Bot
app = Bot('token')
async def my_bot(bot):
me = await bot.getMe()
print(me)
app.run(my_bot)
OR
from rubpy import Bot
app = Bot('token')
async def my_bot(bot):
me = await bot.sendMessage('chat_id', 'text')
print(me)
app.run(my_bot)
Accounts
from rubpy import Client, Methods, Message
app = Client(
'MY-AUTH',
"my_guid"
)
@app.MessageUpdates
async def my_bot(bot: Methods, message: Message):
await message.reply('``Hello`` __from__ **Rubpy**!')
Another example:
from rubpy import Client, Methods
app = Client(
"my_account_auth",
"my_account_guid"
)
async def my_bot(bot: Methods):
await bot.sendText('object_guid', '``Hello`` __from__ **Rubpy**!')
app.run(my_bot)
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 rubpy==5.2.2
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
rubpy-6.0.3.tar.gz
(25.0 kB
view hashes)