It`s an unofficial library for deploying robots on Shad accounts.
Project description
SHAD API Framework for Python
Homepage
•
Documentation
•
Releases
•
News
PyShad
Elegant, modern and asynchronous Shad API framework in Python for users and bots
Pyshad is based on Rubpy
In fact Pyshad is based on rubpy and copied But I will add new features to Pyshad
Async Accounts
from pyshad import Client, filters, utils
from pyshad.types import Updates
bot = Client(name='pyshad')
@bot.on_message_updates(filters.text)
async def updates(update: Updates):
print(update)
await update.reply(utils.Code('hello') + utils.Underline('from') + utils.Bold('rubpy'))
bot.run()
Async Another Example:
from pyshad import Client
import asyncio
async def main():
async with Client(name='pyshad') as bot:
result = await bot.send_message('me', '`hello` __from__ **pyshad**')
print(result)
asyncio.run(main())
Sync Accounts
from pyshad import Client
bot = Client('pyshad')
@bot.on_message_updates()
def updates(message):
message.reply('`hello` __from__ **pyshad**')
bot.run()
Sync Another Example:
from pyshad import Client
with Client(name='pyshad') as client:
result = client.send_message('me', '`hello` __from__ **pyshad**')
print(result)
pyshad 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 Shad's API to execute any official client action and more.
Installing
pip3 install -U pyshad
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pyshad-0.0.1.tar.gz.
File metadata
- Download URL: pyshad-0.0.1.tar.gz
- Upload date:
- Size: 54.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fbb7ec992038ea137d2c4043ca63760b94818d91770b5703305bbf868e1fc32d
|
|
| MD5 |
c7dbabcfdd551b7abef91e0f7a02315d
|
|
| BLAKE2b-256 |
cac394da739495b76f53b76565bd9c164a60a618b5bcf87ede239178fc423720
|
File details
Details for the file pyshad-0.0.1-py3-none-any.whl.
File metadata
- Download URL: pyshad-0.0.1-py3-none-any.whl
- Upload date:
- Size: 110.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9578d01fc86e292b8ae28dfe281fedbfb98261b39f302d3fb5257663ac3360b2
|
|
| MD5 |
8495a1b22ee7ef66e148cb1f4f98169a
|
|
| BLAKE2b-256 |
89a7790c152c09772f464942826d8cdbf12f3bfc78d198f0e896dad6f9ed35c1
|