shadpy


Nameshadpy JSON
Version 3.1.0 PyPI version JSON
download
home_pagehttps://github.com/shayanheidari01/rubika
SummaryA powerful, fast and optimal library for making robots in Shad with sync and async support.
upload_time2024-02-18 23:35:55
maintainer
docs_urlNone
authorShayan Heidari
requires_python~=3.7
license
keywords rubika rubpy shadpy chat bot robot asyncio
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            <p align="center">
    <a href="github.address">
        <img src="https://raw.githubusercontent.com/shayanheidari01/rubika/master/icon.png" alt="Shadpy" width="128">
    </a>
    <br>
    <b>Shad API Framework for Python</b>
    <br>
    <a href="https://github.com/shayanheidari01/rubika">
        Homepage
    </a>
    •
    <a href="https://github.com/shayanheidari01/rubika/tree/master/docs">
        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 Shad API framework in Python for users and bots

### Async Accounts
```python
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:**
```python
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
```python
from shadpy import Client

bot = Client('shadpy')

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

bot.run()
```

**Sync Another Example:**
```python
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

``` bash
pip3 install -U shadpy
```

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/shayanheidari01/rubika",
    "name": "shadpy",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "~=3.7",
    "maintainer_email": "",
    "keywords": "rubika,rubpy,shadpy,chat,bot,robot,asyncio",
    "author": "Shayan Heidari",
    "author_email": "contact@shayanheidari.info",
    "download_url": "https://files.pythonhosted.org/packages/23/1c/a06dfd52ff83a21217b186e106dba5e5e6f562415498973cc2bd295e1123/shadpy-3.1.0.tar.gz",
    "platform": null,
    "description": "<p align=\"center\">\r\n    <a href=\"github.address\">\r\n        <img src=\"https://raw.githubusercontent.com/shayanheidari01/rubika/master/icon.png\" alt=\"Shadpy\" width=\"128\">\r\n    </a>\r\n    <br>\r\n    <b>Shad API Framework for Python</b>\r\n    <br>\r\n    <a href=\"https://github.com/shayanheidari01/rubika\">\r\n        Homepage\r\n    </a>\r\n    \u2022\r\n    <a href=\"https://github.com/shayanheidari01/rubika/tree/master/docs\">\r\n        Documentation\r\n    </a>\r\n    \u2022\r\n    <a href=\"https://pypi.org/project/rubpy/#history\">\r\n        Releases\r\n    </a>\r\n    \u2022\r\n    <a href=\"https://t.me/rubika_library\">\r\n        News\r\n    </a>\r\n</p>\r\n\r\n## Rubpy\r\n\r\n> Elegant, modern and asynchronous Shad API framework in Python for users and bots\r\n\r\n### Async Accounts\r\n```python\r\nfrom shadpy import Client, filters, utils\r\nfrom shadpy.types import Updates\r\n\r\nbot = Client(name='shadpy')\r\n\r\n@bot.on_message_updates()\r\nasync def updates(update: Updates):\r\n    print(update)\r\n    await update.reply(utils.Code('hello') + utils.Underline('from') + utils.Bold('shadpy'))\r\n\r\nbot.run()\r\n```\r\n\r\n**Async Another Example:**\r\n```python\r\nfrom shadpy import Client\r\nimport asyncio\r\n\r\nasync def main():\r\n    async with Client(name='shadpy') as bot:\r\n        result = await bot.send_message('me', '`hello` __from__ **shadpy**')\r\n        print(result)\r\n\r\nasyncio.run(main())\r\n```\r\n\r\n### Sync Accounts\r\n```python\r\nfrom shadpy import Client\r\n\r\nbot = Client('shadpy')\r\n\r\n@bot.on_message_updates()\r\ndef updates(message):\r\n    message.reply('`hello` __from__ **shadpy**')\r\n\r\nbot.run()\r\n```\r\n\r\n**Sync Another Example:**\r\n```python\r\nfrom shadpy import Client\r\n\r\nwith Client(name='shadpy') as client:\r\n    result = client.send_message('me', '`hello` __from__ **shadpy**')\r\n    print(result)\r\n```\r\n\r\n**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\r\nidentity (bot API alternative) using Python.\r\n\r\n\r\n### Key Features\r\n\r\n- **Ready**: Install Shadpy with pip and start building your applications right away.\r\n- **Easy**: Makes the Shad API simple and intuitive, while still allowing advanced usages.\r\n- **Elegant**: Low-level details are abstracted and re-presented in a more convenient way.\r\n- **Fast**: Boosted up by pycryptodome, a high-performance cryptography library written in C.\r\n- **Async**: Fully asynchronous (also usable synchronously if wanted, for convenience).\r\n- **Powerful**: Full access to Shad's API to execute any official client action and more.\r\n\r\n### Installing\r\n\r\n``` bash\r\npip3 install -U shadpy\r\n```\r\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "A powerful, fast and optimal library for making robots in Shad with sync and async support.",
    "version": "3.1.0",
    "project_urls": {
        "Homepage": "https://github.com/shayanheidari01/rubika"
    },
    "split_keywords": [
        "rubika",
        "rubpy",
        "shadpy",
        "chat",
        "bot",
        "robot",
        "asyncio"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "231ca06dfd52ff83a21217b186e106dba5e5e6f562415498973cc2bd295e1123",
                "md5": "33b7e980849de145652da50479b8b909",
                "sha256": "c09ae1730e6668933993218fdb81b27ec4d5a8475e424b0617e6d5575077c7e3"
            },
            "downloads": -1,
            "filename": "shadpy-3.1.0.tar.gz",
            "has_sig": false,
            "md5_digest": "33b7e980849de145652da50479b8b909",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "~=3.7",
            "size": 61826,
            "upload_time": "2024-02-18T23:35:55",
            "upload_time_iso_8601": "2024-02-18T23:35:55.603089Z",
            "url": "https://files.pythonhosted.org/packages/23/1c/a06dfd52ff83a21217b186e106dba5e5e6f562415498973cc2bd295e1123/shadpy-3.1.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-02-18 23:35:55",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "shayanheidari01",
    "github_project": "rubika",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "shadpy"
}
        
Elapsed time: 0.21727s