rubpy
The official rubpy repository, unofficial and high-speed library for rubika...
how to install library
Enter the following command to install the library in your terminal
pip install rubpy
Web Socket Example
from rubpy.socket import Client
import asyncio
socket = Client('YOUR-AUTH')
seened : list = []
async def main():
while 1:
async for chats in socket.handler():
try:
for chat in chats:
if chat['object_guid'].startswith('g'):
if not chat['object_guid'] + chat['chat']['last_message']['message_id'] in seened:
text : str = chat['chat']['last_message']['text']
print(text)
seened.append(chat['object_guid'] + chat['chat']['last_message']['message_id'])
except :
...
This source code receives and prints the latest messages using the Rubica web socket
روبی
مخزن رسمی روبی، کتابخانه غیر رسمی و پرسرعت روبیکا...
مثال وب سوکت
from rubpy.socket import Client
import asyncio
socket = Client('YOUR-AUTH')
seened : list = []
async def main():
while 1:
async for chats in socket.handler():
try:
for chat in chats:
if chat['object_guid'].startswith('g'):
if not chat['object_guid'] + chat['chat']['last_message']['message_id'] in seened:
text : str = chat['chat']['last_message']['text']
print(text)
seened.append(chat['object_guid'] + chat['chat']['last_message']['message_id'])
except :
...
این سورس کد با استفاده از وب سوکت روبیکا آخرین پیام ها را دریافت میکند و چاپ میکند
چگونگی نصب کتابخانه
دستور زیر را در ترمینال خود برای نصب کتابخانه وارد کنید
pip install rubpy
Metadata
Release files for rubpy 2.0.11
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| rubpy-2.0.11.tar.gz | 8.7 kB | Without provenance | Details for rubpy-2.0.11.tar.gz |
Release files / rubpy-2.0.11.tar.gz
| Download URL | rubpy-2.0.11.tar.gz |
|---|---|
| Size | 8.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3d7c73cec0cea6584c4d3b79991ea7c5fa6ece180eb627e5586b8370610e97eb
|
|
BLAKE2b-256 checksum How to use checksums |
0c7e8cf2c283d8576bfc063135bb8cfe7e906a952df37bc730e64f0eaf93f361
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.5
|
Security for rubpy 2.0.11
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.