asterpy-0.1.1
توضیحات
A simple Python wrapper around the Aster protocol, inspired by the syntax of discord.py
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | asterpy-0.1.1 |
| نام | asterpy |
| نسخه کتابخانه | 0.1.1 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | James Kitching |
| ایمیل نویسنده | jamesedkitching@gmail.com |
| آدرس صفحه اصلی | https://github.com/Jachdich/asterpy |
| آدرس اینترنتی | https://pypi.org/project/asterpy/ |
| مجوز | - |
# aster.py
Aster.py is a python implementation of the [Aster](https://github.com/Jachdich/aster-server) protocol, designed for use in bots or custom clients. The syntax is heavily inspired by [discord.py](https://github.com/Rapptz/discord.py).
Currently a work in progress, does not support all of the features of Aster.
PyPI release can be found [here](https://pypi.org/project/asterpy/)
## Documentation
See http://cospox.com/docs/asterpy/
## Example
Ping example (listens for "ping" and responds "pong")
```py
import asterpy
client = asterpy.Client(ip, port, username, password, uuid)
@client.event
async def on_message(message):
if message.content == "ping":
await message.channel.send("pong")
@client.event
async def on_ready():
print("Ready!")
client.run()
```
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.8 | Python |
نحوه نصب
نصب پکیج whl asterpy-0.1.1:
pip install asterpy-0.1.1.whl
نصب پکیج tar.gz asterpy-0.1.1:
pip install asterpy-0.1.1.tar.gz