Skip to main content

Read the latest Real Python tutorials

Project description

Shadpy
Shad API Framework for Python
Homepage Documentation Releases

Shad Api

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

Accounts

from shadapi import Client

app = Client('my_account_auth')

@app.handler
async def my_bot(bot, message):
    await message.reply('``Hello`` __from__ **Shad Api**!')

Another example:

from shadapi import Client

app = Client("my_account_auth")

async def my_bot(bot):
    await bot.sendText('object_guid', '``Hello`` __from__ **Shad Api**!')

app.run(my_bot)

Bots Examples (ONLY FOR SPECIAL MEMBERS) (NOT TESTED)

from shadapi import Bot

app = Bot('token')

async def my_bot(bot):
    me = await bot.getMe()
    print(me)

app.run(my_bot)

OR

from shadapi import Bot

app = Bot('token')

async def my_bot(bot):
    me = await bot.sendMessage('chat_id', 'text')
    print(me)

app.run(my_bot)

Shad-Api 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 Shad-Api 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 shadapi

Thanks to:

shayanheidari01

he did an awesome job at making a rubika library which helped alot to make this project! https://github.com/shayanheidari01/rubika

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

shadapi-0.1.tar.gz (148.3 kB view details)

Uploaded Source

Built Distribution

shadapi-0.1-py3-none-any.whl (27.3 kB view details)

Uploaded Python 3

File details

Details for the file shadapi-0.1.tar.gz.

File metadata

  • Download URL: shadapi-0.1.tar.gz
  • Upload date:
  • Size: 148.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.28.1

File hashes

Hashes for shadapi-0.1.tar.gz
Algorithm Hash digest
SHA256 e8dc3dff2aea304da66fad056cf793c6b2ab05651ac3670f2125852975d2cacc
MD5 12012a9758537f54c085f345c6ee4253
BLAKE2b-256 2def3dd0cabd9cabb8bb26ede6fc5f2e0884d6a8adcb1833b50ebabf0631df3b

See more details on using hashes here.

Provenance

File details

Details for the file shadapi-0.1-py3-none-any.whl.

File metadata

  • Download URL: shadapi-0.1-py3-none-any.whl
  • Upload date:
  • Size: 27.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.28.1

File hashes

Hashes for shadapi-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 eb2e212eb540f0e5945cd992979bf8aff114f30e8ef12145fe45eff9251784f7
MD5 5ea30d0e9f591c713b89a547bc758ef5
BLAKE2b-256 2a4006fc1cf444ae3f98b86e01f6a7fbdcf1103c5c27b89dad70f969dffa6ad8

See more details on using hashes here.

Provenance

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