Skip to main content

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

Project description

Shadpy
Shad API Framework for Python
Homepage Documentation Releases News

Rubpy

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

Async Accounts

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

bot = Client(name='shadpy')

@bot.on_message_updates()
async def updates(update: Updates):
    print(update)
    await update.reply(utils.Code('hello') + utils.Underline('from') + utils.Bold('shadpy'))

bot.run()

Async Another Example:

from shadpy import Client
import asyncio

async def main():
    async with Client(name='shadpy') as bot:
        result = await bot.send_message('me', '`hello` __from__ **shadpy**')
        print(result)

asyncio.run(main())

Sync Accounts

from shadpy import Client

bot = Client('shadpy')

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

bot.run()

Sync Another Example:

from shadpy import Client

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

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

Key Features

  • Ready: Install Shadpy with pip and start building your applications right away.
  • Easy: Makes the Shad 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 shadpy

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

shadpy-3.1.0.tar.gz (61.8 kB view details)

Uploaded Source

File details

Details for the file shadpy-3.1.0.tar.gz.

File metadata

  • Download URL: shadpy-3.1.0.tar.gz
  • Upload date:
  • Size: 61.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.7

File hashes

Hashes for shadpy-3.1.0.tar.gz
Algorithm Hash digest
SHA256 c09ae1730e6668933993218fdb81b27ec4d5a8475e424b0617e6d5575077c7e3
MD5 33b7e980849de145652da50479b8b909
BLAKE2b-256 231ca06dfd52ff83a21217b186e106dba5e5e6f562415498973cc2bd295e1123

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page