Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/python-bale-bot/python-bale-bot
An API wrapper for Bale written in Python.
https://github.com/python-bale-bot/python-bale-bot
bale bale-bot bot freamework python python3 wrapper-api
Last synced: 3 months ago
JSON representation
An API wrapper for Bale written in Python.
- Host: GitHub
- URL: https://github.com/python-bale-bot/python-bale-bot
- Owner: python-bale-bot
- License: gpl-2.0
- Created: 2022-02-06T07:48:05.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2024-04-13T16:03:40.000Z (7 months ago)
- Last Synced: 2024-04-14T07:00:48.629Z (7 months ago)
- Topics: bale, bale-bot, bot, freamework, python, python3, wrapper-api
- Language: Python
- Homepage: https://python-bale-bot.ir
- Size: 1.49 MB
- Stars: 38
- Watchers: 2
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Contributing: .github/CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# python-bale-bot Library
An API wrapper for Bale written in Python.
[![Python Version](https://img.shields.io/badge/Python-3.8_|_3.9_|_3.10_|_3.11_|_3.12_-red?logo=python&style=plastic)](https://python.org)
[![PyPi Version](https://img.shields.io/pypi/v/python-bale-bot?color=blue&label=pypi&style=plastic&logo=pypi)](https://pypi.org/p/python-bale-bot)
[![Codacy Badge](https://app.codacy.com/project/badge/Grade/deacf2bc3f13492d944e329ac19ac0d1)](https://www.codacy.com/gh/python-bale-bot/python-bale-bot/dashboard)
[![python-bale-bot score](https://snyk.io/advisor/python/python-bale-bot/badge.svg)](https://snyk.io/advisor/python/python-bale-bot)
[![Project License](https://img.shields.io/github/license/python-bale-bot/python-bale-bot?style=plastic)](https://www.gnu.org/licenses/old-licenses/gpl-2.0.en.html)
[![API Version](https://img.shields.io/badge/Bale%20API-2.0-blue?style=plastic)](https://docs.bale.ai)
[![Documentation Status](https://readthedocs.org/projects/python-bale-bot/badge/?version=stable)](https://docs.python-bale-bot.ir/)## Introduction
### What is Bale?
**The "Bale" is a messenger-platform for send and receive messages.** it's provides services for developers, and they can send or receive messages through `bots` like normal users and These services are provided by [web services](https://dev.bale.ai) (`API`).
### What is python-bale-bot?
**The "python-bale-bot" is a Python language package optimized for developers to use web services provided by "Bale".**
## Installing
**You can install or update `python-bale-bot` via:**
### PyPi
```
$ pip install python-bale-bot -U
```### Git
```
git clone https://github.com/python-bale-bot/python-bale-bot
cd python-bale-bot
python setup.py install
```## Quick Start
To get started, learn how the library works through the library. In addition, there are examples in the "[Examples](https://docs.python-bale-bot.ir/en/stable/examples.html)" section of the library.
```python
from bale import Bot, Message
from bale.handlers import CommandHandlerclient = Bot(token="YOUR TOKEN")
@client.listen('on_ready')
async def on_ready_handler():
print(client.user, "is Ready!")@client.handle(CommandHandler("start"))
async def start_command(message: Message):
await message.reply(f'Hi {message.author.first_name}!')client.run()
```## Documentation
**The [package documentation](https://docs.python-bale-bot.ir/en/stable) is the technical reference for python-bale-bot. It contains descriptions of all available classes, modules, methods and arguments as well as the changelog.**
## Contact to Developers
[![Email](https://img.shields.io/badge/[email protected]?logo=Gmail&logoColor=white)](mailto:[email protected])
[![Discord](https://img.shields.io/discord/942347256508596225?logo=discord&logoColor=white&label=Support%20Server
)](https://discord.gg/bYHEzyDe2j)
[![Telegram Channel](https://img.shields.io/badge/Telegram_Channel-@pbblib-green?logo=telegram&logoColor=white)](https://t.me/pbblib)
[![Our Site](https://img.shields.io/badge/Our_site-python--bale--bot.ir-green?logo=GitHub&logoColor=white)](https://python-bale-bot.ir)