Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

luster

Python library for Revolt.chat API.

Documentation • Revolt Server • Source 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.

Metadata

Release files for luster 0.1.0a2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for luster 0.1.0a2
File Interpreter ABI Platform Actions
luster-0.1.0a2-py3-none-any.whl Python 3 none any Details for luster-0.1.0a2-py3-none-any.whl

Release files / luster-0.1.0a2-py3-none-any.whl

Download URL luster-0.1.0a2-py3-none-any.whl
Size 18.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e96af2cd80641ca9c461ff3fd2c58e1aede5d9566bec1ade8720a7f04f336861
BLAKE2b-256 checksum
How to use checksums
968a38a285df31d0b54e51209327722bf765543d05efd52d2b9a0eb494d63913
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.4

Security for luster 0.1.0a2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page