Skip to main content

Python wrapper for UnbelievaBoat API

Project description

Pybelieva

|logo| ## About Pybelieva > Pybelieva is a library providing a Python interface to the > UnbelivaBoat API <https://unbelievable.pizza/api/docs>__. To use it, you need > to get a token from the official documentation page. Also supports discord.py > Guild and User objects.

|discord| |status| |release| |api| |documentation| |python|

Help

You can find an in-depth tutorial and a detailed documentation on
`our wiki <https://github.com/dev-cats/Pybelieva/wiki>`__.

Quick Start

Setup


1. Install Pybelieva.
2. Go to `the UnbelivaBoat site <https://unbelievable.pizza>`__.
3. Login to your Discord account.
4. Go to `the API page <https://unbelievable.pizza/api/docs>`__.
5. Click "Copy" under the big string of red text. Your token is now in
   the clipboard. |example|

.. code:: python

    >>> client = Client('Insert token here')
    >>> guild = Guild(0) # Replace 0 with a Discord guild id
    >>> user = User(0)   # Replace 0 with a Discord user id

Functions

.. code:: python

client.get_balance(guild, user)

Returns: User with all attributes set.

.. code:: python

client.get_leaderboard(guild)

Returns: list of User\ s with all attributes set, ordered by rank.

.. code:: python

client.patch_balance(guild, user, cash, bank)

Returns: User with all attributes except rank set and an updated balance.

.. code:: python

client.set_balance(guild, user, cash, bank)

Returns: User with all attributes except rank set and the new balance.

Dependencies

-  Python
-  aiohttp
-  discord.py (optional)

.. |logo| image:: https://i.imgur.com/RLRDeQw.png .. |discord| image:: https://discordapp.com/api/guilds/566686199834476555/embed.png :target: https://discord.gg/azdCbgv .. |status| image:: https://img.shields.io/badge/status-release-brightgreen.svg :target: https://github.com/dev-cats/Pybelieva/releases/tag/v1.0.0 .. |release| image:: https://img.shields.io/badge/version-v1.2.0-blue.svg :target: https://github.com/dev-cats/Pybelieva/wiki/Version-History .. |api| image:: https://img.shields.io/badge/api-v1-ff266a.svg :target: https://unbelievable.pizza/api/docs .. |documentation| image:: https://img.shields.io/badge/documentation-100%25-brightgreen.svg :target: https://github.com/dev-cats/Pybelieva/wiki/Documentation .. |python| image:: https://img.shields.io/badge/python-any-blue.svg :target: https://python.org/ .. |example| image:: https://i.imgur.com/HBcXbn9.png

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

Pybelieva-0.0.2.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

Pybelieva-0.0.2-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

Details for the file Pybelieva-0.0.2.tar.gz.

File metadata

  • Download URL: Pybelieva-0.0.2.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.14.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.6.8

File hashes

Hashes for Pybelieva-0.0.2.tar.gz
Algorithm Hash digest
SHA256 55e2a16e93ee04a17a059ef90115e658b42bcaffc5bfee788c3602c2d3c634d8
MD5 889f6ad6f815935b5ca3a205f4d7d2e6
BLAKE2b-256 a1e6678afcca6acd8420e2639f7a835cac0dc50af567345ab4ce2011dcef2f62

See more details on using hashes here.

File details

Details for the file Pybelieva-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: Pybelieva-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 4.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.14.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.6.8

File hashes

Hashes for Pybelieva-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 cd68059f9bae08eb53490ffd04849379e71f0e33042ad5924149dde414e31f11
MD5 27eda8d595f0ac7b0ab3c70e5f732879
BLAKE2b-256 ca2c8c4effd29ac5a75f6c0446a03c4960c6fb19a740e06a393b8b765336813f

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