Skip to main content

A simple Python wrapper around the Aster protocol, inspired by the syntax of discord.py

Project description

aster.py

Aster.py is a python implementation of the Aster protocol, designed for use in bots or custom clients. The syntax is heavily inspired by discord.py.

Currently a work in progress, does not support all of the features of Aster.

PyPI release can be found here

Documentation

See http://cospox.com/docs/asterpy/

Example

Ping example (listens for "ping" and responds "pong")

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()

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

asterpy-0.1.1.tar.gz (8.0 kB view hashes)

Uploaded Source

Built Distribution

asterpy-0.1.1-py3-none-any.whl (9.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page