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("Username", "Password")
client.add_server("example.com", 2345, uuid=my_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.5.0.tar.gz (10.3 kB view details)

Uploaded Source

Built Distribution

asterpy-0.5.0-py3-none-any.whl (12.8 kB view details)

Uploaded Python 3

File details

Details for the file asterpy-0.5.0.tar.gz.

File metadata

  • Download URL: asterpy-0.5.0.tar.gz
  • Upload date:
  • Size: 10.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.11.1

File hashes

Hashes for asterpy-0.5.0.tar.gz
Algorithm Hash digest
SHA256 68e7f52b75a26e041f731f9cdf1b3c1975b768bd0c38591f25740174a8d2c6dd
MD5 94e660ce4fd9d0c504fa0334c453eb25
BLAKE2b-256 09b906626d8f03e638a315f9b4a1aa27939bf51a50094ffb91ae57a4775f8802

See more details on using hashes here.

File details

Details for the file asterpy-0.5.0-py3-none-any.whl.

File metadata

  • Download URL: asterpy-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 12.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.11.1

File hashes

Hashes for asterpy-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 81962e3a1b981982a9901b4b5b85a2a6055e7af7218a01bdc1248c1c61fe53ff
MD5 cc772c7bdcd5883ebde267af441ede70
BLAKE2b-256 766050af961dff6f138bf1fd353db9638aee54402f74a90066b536e86677db89

See more details on using hashes here.

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