rumax


Namerumax JSON
Version 0.1 PyPI version JSON
download
home_pagehttps://github.com/rumaxproject/rumax
SummaryA powerful, fast and optimal library for making robots in Rubika with sync and async support.
upload_time2024-11-30 21:12:48
maintainerNone
docs_urlNone
authorShayan Heidari
requires_python~=3.7
licenseNone
keywords rubika rubpy 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="Rubpy" width="128">
    </a>
    <br>
    <b>Rubika API Framework for Python</b>
    <br>
    <a href="https://github.com/rumaxproject/rumax">
        Homepage
    </a>
    •
    <a href="">
        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 Rubika API framework in Python for users and bots

### Using Async
```python
from rubpy import Client, filters, utils
from rubpy.types import Updates

bot = Client(name='rubpy')

@bot.on_message_updates(filters.text)
async def updates(update: Updates):
    await update.reply('`hello` __from__ **rubpy**')

bot.run()
```

**Using Async**
```python
from rubpy import Client
import asyncio

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

asyncio.run(main())
```

### Using Sync
```python
from rubpy import Client

bot = Client('rubpy')

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

bot.run()
```

**Using Sync:**
```python
from rubpy import Client

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

**Rubpy** 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 Rubika's API to execute any official client action and more.

### Installing

``` bash
pip3 install -U rubpy
```

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/rumaxproject/rumax",
    "name": "rumax",
    "maintainer": null,
    "docs_url": null,
    "requires_python": "~=3.7",
    "maintainer_email": null,
    "keywords": "rubika, rubpy, chat, bot, robot, asyncio",
    "author": "Shayan Heidari",
    "author_email": "contact@shayanheidari.info",
    "download_url": "https://files.pythonhosted.org/packages/e7/ac/78f716c644f9c3a3e871dabb2ce24f064c86e3f4220223c61b762c733788/rumax-0.1.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=\"Rubpy\" width=\"128\">\r\n    </a>\r\n    <br>\r\n    <b>Rubika API Framework for Python</b>\r\n    <br>\r\n    <a href=\"https://github.com/rumaxproject/rumax\">\r\n        Homepage\r\n    </a>\r\n    \u2022\r\n    <a href=\"\">\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 Rubika API framework in Python for users and bots\r\n\r\n### Using Async\r\n```python\r\nfrom rubpy import Client, filters, utils\r\nfrom rubpy.types import Updates\r\n\r\nbot = Client(name='rubpy')\r\n\r\n@bot.on_message_updates(filters.text)\r\nasync def updates(update: Updates):\r\n    await update.reply('`hello` __from__ **rubpy**')\r\n\r\nbot.run()\r\n```\r\n\r\n**Using Async**\r\n```python\r\nfrom rubpy import Client\r\nimport asyncio\r\n\r\nasync def main():\r\n    async with Client(name='rubpy') as bot:\r\n        result = await bot.send_message('me', '`hello` __from__ **rubpy**')\r\n        print(result)\r\n\r\nasyncio.run(main())\r\n```\r\n\r\n### Using Sync\r\n```python\r\nfrom rubpy import Client\r\n\r\nbot = Client('rubpy')\r\n\r\n@bot.on_message_updates()\r\ndef updates(message):\r\n    message.reply('`hello` __from__ **rubpy**')\r\n\r\nbot.run()\r\n```\r\n\r\n**Using Sync:**\r\n```python\r\nfrom rubpy import Client\r\n\r\nwith Client(name='rubpy') as client:\r\n    result = client.send_message('me', '`hello` __from__ **rubpy**')\r\n    print(result)\r\n```\r\n\r\n**Rubpy** 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\r\nidentity (bot API alternative) using Python.\r\n\r\n\r\n### Key Features\r\n\r\n- **Ready**: Install Rubpy with pip and start building your applications right away.\r\n- **Easy**: Makes the Rubika 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 Rubika's API to execute any official client action and more.\r\n\r\n### Installing\r\n\r\n``` bash\r\npip3 install -U rubpy\r\n```\r\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "A powerful, fast and optimal library for making robots in Rubika with sync and async support.",
    "version": "0.1",
    "project_urls": {
        "Homepage": "https://github.com/rumaxproject/rumax"
    },
    "split_keywords": [
        "rubika",
        " rubpy",
        " chat",
        " bot",
        " robot",
        " asyncio"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "e7ac78f716c644f9c3a3e871dabb2ce24f064c86e3f4220223c61b762c733788",
                "md5": "f37957659a54d095ade33514f291a61a",
                "sha256": "ba165dd900c6a639f95102ea9e8a8b73005198b91bac01910ea169c0e2920d3a"
            },
            "downloads": -1,
            "filename": "rumax-0.1.tar.gz",
            "has_sig": false,
            "md5_digest": "f37957659a54d095ade33514f291a61a",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "~=3.7",
            "size": 74688,
            "upload_time": "2024-11-30T21:12:48",
            "upload_time_iso_8601": "2024-11-30T21:12:48.288649Z",
            "url": "https://files.pythonhosted.org/packages/e7/ac/78f716c644f9c3a3e871dabb2ce24f064c86e3f4220223c61b762c733788/rumax-0.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-11-30 21:12:48",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "rumaxproject",
    "github_project": "rumax",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "rumax"
}
        
Elapsed time: 0.61676s