-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathPKG-INFO
118 lines (95 loc) · 3.37 KB
/
PKG-INFO
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
Metadata-Version: 2.1
Name: rubpy
Version: 5.2.1
Summary: This is an unofficial library and fastest library for deploying robots on Rubika accounts.
Home-page: https://github.com/shayanheidari01/rubika
Author: Shayan Heidari
Author-email: snipe4kill@yahoo.com
Keywords: rubika,rubpy,rubikaio,chat,bot,robot,asyncio
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)
Classifier: Topic :: Internet
Classifier: Topic :: Communications
Classifier: Topic :: Communications :: Chat
Classifier: Topic :: Software Development :: Libraries
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Topic :: Software Development :: Libraries :: Application Frameworks
Requires-Python: ~=3.7
Description-Content-Type: text/markdown
<p align="center">
<a href="github.address">
<img src="https://upcdn.io/W142hJk/thumbnail/demo/4mrDXtYPJA.png.crop" alt="Rubpy" width="128">
</a>
<br>
<b>Rubika API Framework for Python</b>
<br>
<a href="https://github.com/shayanheidari01/rubika">
Homepage
</a>
•
<a href="https://github.com/shayanheidari01/rubika/raw/master/docs/rubpy-documents.pdf">
Documentation
</a>
•
<a href="https://pypi.org/project/rubpy/#history">
Releases
</a>
•
<a href="https://t.me/rubika_library">
News
</a>
</p>
## Rubpy
> Elegant, modern and asynchronous Rubika API framework in Python for users and bots
### Bots Examples
```python
from rubpy import Bot
app = Bot('token')
async def my_bot(bot):
me = await bot.getMe()
print(me)
app.run(my_bot)
```
**OR**
```python
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
``` python
from rubpy import Client
app = Client('MY-AUTH')
@app.handler
async def my_bot(bot, message):
await message.reply('``Hello`` __from__ **Rubpy**!')
```
**Another example:**
``` python
from rubpy import Client
app = Client("my_account_auth")
async def my_bot(bot):
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
``` bash
pip3 install rubpy==5.2.1
```