Asynchronous wrapper for UnbelievaBoat's API written in Python.
Project description
unbelipy
Asynchronous wrapper for UnbelievaBoat's API written in Python.
Characteristics
- Easy to use
- Full error handling
- Type hinted readable code
- Active maintenance
- Fully Asynchronous
Note
This wrapper has not been declared to be official by the UnbelievaBoat developers. Any internal library issues/feature requests are to be directed here.
Project status
Early beta stage. It's not yet production ready.
Although most of the functionality is operational, rate limits are still being worked on.
Installation
Python 3.8 or above required, due to typehinting.
To install unbelipy from PyPI, use the following command:
pip install -U unbelipy
Or to install from Github:
pip install -U git+https://github.com/chrisdewa/unbelipy/
Dependencies
The following libraries will be needed and automatically installed with unbelipy:
- aiohttp - async requests
- aiolimiter - implementation of async rate limiter
Feature Requests
For feature requests, please open a Pull Request with detailed instructions.
Likewise, if you encounter any issues, you may create a new Issue.
Examples
from unbelipy import UnbeliClient
client = UnbeliClient(token='Unbelievaboats token generated from https://unbelievaboat.com/applications/')
guild_id: int = ...
member_id: int = ...
async def main():
perms = await client.get_permissions(guild_id)
guild = await client.get_guild(guild_id)
guild_leaderboard = await client.get_guild_leaderboard(guild_id)
user_balance = await client.get_user_balance(guild_id, member_id)
user_balance = await client.edit_user_balance(guild_id, member_id, cash='5') # adds 5 to the user's cash
user_balance = await client.set_user_balance(guild_id, member_id, cash='5') # sets the user's cash to 5
Links
Contact
As of now, there is no support server for this library. However, you may contact the following people on Discord:
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file unbelipy-2.1.1b0.tar.gz
.
File metadata
- Download URL: unbelipy-2.1.1b0.tar.gz
- Upload date:
- Size: 12.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.14 CPython/3.10.6 Windows/10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9f0699a2dde92bfb7eee603d392d3ca48955ed7cd53090d76acfa728d8b59b12 |
|
MD5 | 64d75ff60a7bf59fcb5cb52626756fb5 |
|
BLAKE2b-256 | 1fb6225530393ec13d625997fde269aa3cfb764b94416436fe8d771b23f9f256 |
File details
Details for the file unbelipy-2.1.1b0-py3-none-any.whl
.
File metadata
- Download URL: unbelipy-2.1.1b0-py3-none-any.whl
- Upload date:
- Size: 15.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.14 CPython/3.10.6 Windows/10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2dc7ba69c13aa24f1687c1c4f98ec956fc592f0ffac4c547f00156e793859704 |
|
MD5 | f56555ee3609f66e932e30e527d65cb4 |
|
BLAKE2b-256 | 3dcbd6a2f34bcc0d9425290889a9875b777b2553f91faa2250432e838e300bf3 |