Skip to main content

Asynchronous wrapper for UnbelievaBoat's API written in Python.

Project description

unbelipy

forthebadge made-with-python

PyPI status PyPI version fury.io PyPI downloads PyPI license

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:

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

More examples!

Links

Contact

As of now, there is no support server for this library. However, you may contact the following people on Discord:

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

unbelipy-2.1.0b0.tar.gz (12.5 kB view details)

Uploaded Source

Built Distribution

unbelipy-2.1.0b0-py3-none-any.whl (15.2 kB view details)

Uploaded Python 3

File details

Details for the file unbelipy-2.1.0b0.tar.gz.

File metadata

  • Download URL: unbelipy-2.1.0b0.tar.gz
  • Upload date:
  • Size: 12.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.14 CPython/3.10.6 Windows/10

File hashes

Hashes for unbelipy-2.1.0b0.tar.gz
Algorithm Hash digest
SHA256 3d1d97a89006d7242532e6469231de11d71296868971c556ab541b31f6c2a5c2
MD5 48149bf4005ad81df7263ccf3223bfb4
BLAKE2b-256 24bbfadd7dd2407e392586e30240836c9132a1ffcf11bf82f84048f5d641bd74

See more details on using hashes here.

File details

Details for the file unbelipy-2.1.0b0-py3-none-any.whl.

File metadata

  • Download URL: unbelipy-2.1.0b0-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

Hashes for unbelipy-2.1.0b0-py3-none-any.whl
Algorithm Hash digest
SHA256 6f81862644b1732c8820c9b05b919534aee897fe014920a3515e617bdad775f3
MD5 d011adca1b2efbb6e43ddc94304a683e
BLAKE2b-256 cea2a5c95227221a63a19eb1ce4c81382b24bb41e2ec54a049a0c735b54bf398

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