<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/shayanheidari01/rubika">
Homepage
</a>
•
<a href="https://docs.rubpy.site/">
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/shayanheidari01/rubika",
"name": "rubpy",
"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/5e/36/1f2ce5745a6d5cb5381f420c89a20323f1d0057a4643fa3fed4b97149c07/rubpy-7.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/shayanheidari01/rubika\">\r\n Homepage\r\n </a>\r\n \u2022\r\n <a href=\"https://docs.rubpy.site/\">\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": "7.0.1",
"project_urls": {
"Homepage": "https://github.com/shayanheidari01/rubika"
},
"split_keywords": [
"rubika",
" rubpy",
" chat",
" bot",
" robot",
" asyncio"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "5e361f2ce5745a6d5cb5381f420c89a20323f1d0057a4643fa3fed4b97149c07",
"md5": "629c736fe3bf7f44d2e16ebe1e0fea52",
"sha256": "67df63b5f9ea6a478346171e77201d400923d3c5db71e929d1808bf78eb127ed"
},
"downloads": -1,
"filename": "rubpy-7.0.1.tar.gz",
"has_sig": false,
"md5_digest": "629c736fe3bf7f44d2e16ebe1e0fea52",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "~=3.7",
"size": 73456,
"upload_time": "2024-04-06T23:07:21",
"upload_time_iso_8601": "2024-04-06T23:07:21.741711Z",
"url": "https://files.pythonhosted.org/packages/5e/36/1f2ce5745a6d5cb5381f420c89a20323f1d0057a4643fa3fed4b97149c07/rubpy-7.0.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-04-06 23:07:21",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "shayanheidari01",
"github_project": "rubika",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "rubpy"
}