UnbelievaBoat API Python Wrapper
This is a Python wrapper for the UnbelievaBoat API, which provides access to the UnbelievaBoat Discord bot functionality. It allows you to interact with the API endpoints to retrieve guild information, user balances, leaderboard data, and more.
Installation
You can install the UnbelievaBoat API Python wrapper using pip. Open your terminal and run the following command:
pip install unbelievaboat
Usage
Here's an example of how to use the UnbelievaBoat API Python wrapper to interact with the UnbelievaBoat API:
from unbelievaboat import Client
import asyncio
async def main() -> None:
# Initialize the client with your API token
client = Client("your-api-token")
guild_id = ...
user_id = ...
# Retrieve guild information
guild = await client.get_guild(guild_id)
print(guild)
# Retrieve user balance
user = await guild.get_user_balance(user_id)
print(user)
# Set or update user balance
await user.set(bank=100)
await user.update(bank=-100)
print(user)
# Close the client session
await client.close()
# You can also use async context manager
async with Client("your-api-token") as client:
leaderboard = await client.get_guild_leaderboard(guild_id)
print(leaderboard)
asyncio.run(main())
Replace "your-api-token" with your actual API token. You can obtain an API token by logging into the UnbelievaBoat dashboard and generating a token for your bot.
Please note that the above example demonstrates a basic usage scenario. You can explore other available methods in the Client class to interact with different API endpoints. You can also find more examples in the examples directory. For more information about the UnbelievaBoat API (data/params), please refer to the official documentation.
Requirements
- Python 3.8+
Contributing
Contributions are welcome! If you encounter any issues or have suggestions for improvements, please open an issue or submit a pull request on the GitHub repository.
License
This project is licensed under the MIT License.
Metadata
Release files for unbelievaboat 2.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| unbelievaboat-2.2.0.tar.gz | 14.2 kB | Without provenance | Details for unbelievaboat-2.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| unbelievaboat-2.2.0-py3-none-any.whl | Python 3 | none | any | Details for unbelievaboat-2.2.0-py3-none-any.whl |
Total release size: 35.6 kB
Release files / unbelievaboat-2.2.0.tar.gz
| Download URL | unbelievaboat-2.2.0.tar.gz |
|---|---|
| Size | 14.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
77d862a167cf1a59bd2886076e127c678eb1808cf2ebe9f2c57981ed5b8edfbc
|
|
BLAKE2b-256 checksum How to use checksums |
fc20e9dc2a2f7231317ff33fc65476c65674ce5d42969655d1d850043e549864
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.10
|
Release files / unbelievaboat-2.2.0-py3-none-any.whl
| Download URL | unbelievaboat-2.2.0-py3-none-any.whl |
|---|---|
| Size | 21.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
940533f6e55a641d1d0d9a2e06ec2b4dbdf25c64e03e12bd325ec1a6cd66e9aa
|
|
BLAKE2b-256 checksum How to use checksums |
1ea413e08ab499525e1ac9c2b84e61e371d588b1beaacf63df30f10205004b8e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.10
|
Security for unbelievaboat 2.2.0
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.