<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/85/80/99c46036ac8f6b7e81614b7a0dfeb6cff02e4063753d59a75f4ed06efad5/rubpy-7.0.6.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.6",
"project_urls": {
"Homepage": "https://github.com/shayanheidari01/rubika"
},
"split_keywords": [
"rubika",
" rubpy",
" chat",
" bot",
" robot",
" asyncio"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "858099c46036ac8f6b7e81614b7a0dfeb6cff02e4063753d59a75f4ed06efad5",
"md5": "7de6b256a617a4a34ca3908e1fc474f1",
"sha256": "0c21eb49e7c4ad16c7483d5a0fe6eeaf63324749cf3780bcc5d10101b62c43f7"
},
"downloads": -1,
"filename": "rubpy-7.0.6.tar.gz",
"has_sig": false,
"md5_digest": "7de6b256a617a4a34ca3908e1fc474f1",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "~=3.7",
"size": 75240,
"upload_time": "2024-05-20T23:21:12",
"upload_time_iso_8601": "2024-05-20T23:21:12.517888Z",
"url": "https://files.pythonhosted.org/packages/85/80/99c46036ac8f6b7e81614b7a0dfeb6cff02e4063753d59a75f4ed06efad5/rubpy-7.0.6.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-05-20 23:21:12",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "shayanheidari01",
"github_project": "rubika",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "rubpy"
}