Skip to main content

[Pre-Alpha] Python library for Revolt.chat.

Project description

luster

Python library for Revolt.chat API.

DocumentationRevolt ServerSource Code

:warning: Acknowledgement

This library is not yet complete and is currently in it's early development stage. Do not use this for production yet. Expect bugs and other issues. The library is is in active development and will be complete and production ready soon.

Join our Revolt Server

Features

  • Modern and easy to use interface
  • Fully typed and compatible with most type checkers
  • Supports operations with both bots and users API
  • Provides maximum control over the low level API
  • Type definitions for Revolt API

Installation

You can install this library using the Python's traditional package manager, pip.

$ pip install luster

Note that Python 3.8 or higher is required.

The only required dependency for this library is aiohttp. There are certain dependencies that you can install in order to enhance the speed of the library.

  • msgpack (Faster websocket packets parsing)
  • ujson (Faster JSON parsing)
  • aiohttp[speed] (Speed ups for aiohttp)

These dependencies can be installed by:

$ pip install luster[speed]

Basic Usage

:information_source: Type annotations are not required.

import luster

client = luster.Client(token="...")

@client.listen(luster.WebsocketEvent.AUTHENTICATED)
async def handle_authenticated(event: luster.events.Authenticated):
    print("Client has connected!")

client.launch()

Basic operations such as sending messages are not yet supported. You can use the low level API such as HTTPHandler and WebsocketHandler to manually interact with Revolt API.

Contributing

This library is still in it's alpha (0.x) phase and is undergoing active development to provide 100% coverage of Revolt API. Any kind of contribution is welcomed. See Contribution guidelines for more information.

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

luster-0.1.0a2-py3-none-any.whl (18.3 kB view details)

Uploaded Python 3

File details

Details for the file luster-0.1.0a2-py3-none-any.whl.

File metadata

  • Download URL: luster-0.1.0a2-py3-none-any.whl
  • Upload date:
  • Size: 18.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.4

File hashes

Hashes for luster-0.1.0a2-py3-none-any.whl
Algorithm Hash digest
SHA256 e96af2cd80641ca9c461ff3fd2c58e1aede5d9566bec1ade8720a7f04f336861
MD5 be92b1ce1842b5fd402609604ee19501
BLAKE2b-256 968a38a285df31d0b54e51209327722bf765543d05efd52d2b9a0eb494d63913

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