Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/eludris-community/velum
Velum is an opinionated wrapper for the Eludris API written in Python.
https://github.com/eludris-community/velum
eludris eludris-api eludris-wrapper python python3 python310
Last synced: 2 months ago
JSON representation
Velum is an opinionated wrapper for the Eludris API written in Python.
- Host: GitHub
- URL: https://github.com/eludris-community/velum
- Owner: eludris-community
- License: mit
- Created: 2022-11-18T15:46:49.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2023-11-08T00:10:46.000Z (about 1 year ago)
- Last Synced: 2024-08-01T10:16:55.275Z (5 months ago)
- Topics: eludris, eludris-api, eludris-wrapper, python, python3, python310
- Language: Python
- Homepage:
- Size: 114 KB
- Stars: 7
- Watchers: 1
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Velum
Velum is an opinionated wrapper for the [Eludris](https://eludris.com) API written in Python, very much inspired by [Hikari](https://github.com/hikari-py/hikari).
It can handle connection, keep-alive, gateway events and interacting with Eludris' REST-api. If you are looking for a command handler to go with Velum, please take a look at [Velum-Sail](https://github.com/eludris-community/velum-sail).Please keep in mind that this library is still in its infancy, and some much needed features such as documentation are coming in the nearTM future.
# Installing
*Python 3.10 or higher is required.*
To install the library, currently the only option is to install it off of this very github page.
```
python3 -m pip install -U git+https://github.com/eludris-community/velum
```
To install optional dependencies to make everything run faster, Velum can also be installed through
```
python3 -m pip install -U -e git+https://github.com/eludris-community/velum.git#egg=velum[speedups]
```
This will install `aiohttp` with speedups extras, `uvloop`, and `orjson`. For more information, please see the [example on speedups](https://github.com/eludris-community/velum/blob/master/examples/speedups.py).# Example
```py
import asyncioimport velum
client = velum.GatewayClient()
@client.listen()
async def listener(event: velum.MessageCreateEvent) -> None:
await client.rest.send_message(f"{event.author} just sent a message!")asyncio.run(client.start())
```
For more in-depth examples, please see the [examples directory](https://github.com/eludris-community/velum/tree/master/examples).