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.6.1.tar.gz (13.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

asterpy-0.6.1-py3-none-any.whl (15.5 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for asterpy-0.6.1.tar.gz
Algorithm Hash digest
SHA256 02b63e021927b20e453632528383246002a124ae1a1c097a6e5060e64c6b2a01
MD5 bc8e24b9846a6d339b24de7b5f0a5a1a
BLAKE2b-256 3619cf9e10919d986d3464a366f41b4f7827945590fcb8f0f7aea5c982766fa6

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for asterpy-0.6.1-py3-none-any.whl
Algorithm Hash digest
SHA256 dc5ad28eab188d7b28ad2858dbfa1e02a452219faf2c1105aeca87efbc22ffb6
MD5 fe1c9eb47b25a612d7f1b0935bc31580
BLAKE2b-256 8c013b533e87409a6aa8f96d849f2479fe107b4c3d46931389fbda1b522ba4bd

See more details on using hashes here.

Supported by

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