Metadata-Version: 2.1
Name: dbleupy
Version: 2.0.1
Summary: This package offers you a more user friendly and easier way to interact with the discord-botlist.eu HTTP api.
Home-page: UNKNOWN
Author: Florent Tahiri
Author-email: florent.tahiri@gski.de
License: MIT
Keywords: dbleupy api http
Platform: UNKNOWN
Classifier: Development Status :: 5 - Production/Stable
Classifier: License :: OSI Approved :: MIT License
Classifier: Intended Audience :: Developers
Classifier: Natural Language :: English
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Topic :: Internet
Classifier: Topic :: Software Development :: Libraries
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Topic :: Utilities
Classifier: Typing :: Typed
Requires-Python: >=3.4.0
Description-Content-Type: text/markdown
License-File: LICENCE.txt

dbleupy
==========


This package offers you a more user friendly and easier way to interact with the discord-botlist.eu HTTP api.


Installing
----------

**Python 3.4 or higher is required**
**If you want to use auto post, you must have discord.ext**

To install the library you can just run the following command:


    # Linux/macOS
    python3 -m pip install -U dbleupy

    # Windows
    py -3 -m pip install -U dbleupy



Quick Example
--------------
    from dbleupy import dbleu_postservercount, dbleu_getbotvotes, dbleu_getbotdata


    dbleuKEY = "APIKEY"

    r = dbleu_getbotvotes(dbleuKEY)
    print(r.content)
    # GET ALL BOT VOTES

    r = dbleu_getbotdata(dbleuKEY)
    print(r.content)
    # GET BOTDATA



    dbleu_postservercount(dbleuKEY, len(client/bot.guilds))
    # POST SERVERCOUNT


Example with auto post
~~~~~~~~~~~~~
from dbleupy import dbleu_postservercount, dbleu_getbotvotes, dbleu_getbotdata
from discord.ext import tasks

dbleuKEY = "APIKEY"

r = dbleu_getbotvotes(dbleuKEY)
print(r.content)
# GET ALL BOT VOTES

r = dbleu_getbotdata(dbleuKEY)
print(r.content)
# GET BOTDATA


@tasks.loop(minutes=5)
async def auto_post():
    dbleu_postservercount(dbleuKEY, 200)


auto_post.start()
# POST SERVERCOUNT every 5 mins.

~~~~~~~~~~~~~

Links
==========

Documentation: https://docs.discord-botlist.eu

Official Discord Server: https://discord.gg/FR3cA5dWK6

Discord Developers: https://discord.gg/discord-developers

Discord-botlist.eu API: https://dev.discord-botlist.eu

