Metadata-Version: 1.2
Name: dblpy
Version: 0.1.2
Summary: A simple API wrapper for discordbots.org written in Python
Home-page: https://github.com/DiscordBotList/DBL-Python-Library 
Author: Francis Taylor, discordbots.org
Author-email: contact@franc.ist
License: MIT
Description-Content-Type: UNKNOWN
Description: DBL Python Library
        ==================
        
        A simple API wrapper for `discordbots.org`_ written in Python
        
        Installation
        ------------
        
        Install via pip (recommended)
        
        .. code:: bash
        
            pip install dblpy
        
        Install from source
        
        .. code:: bash
        
            git clone https://github.com/DiscordBotList/DBL-Python-Library
            cd DBL-Python-Library
            pip install -R requirements.txt
        
        Working
        -------
        
        * POST server count
        * GET bot info, server count, upvote count, upvote info
        * GET all bots
        * GET user info
        * GET widgets (large and small) including custom ones. See `discordbots.org/api/docs`_ for more info.
        
        Not Working /  Implemented
        --------------------------
        
        * Searching for bots via the api
        
        Example
        -------
        
        .. code:: py
        
            import dblpy
            from dblpy import Client
            import asyncio
            import aiohttp
            import json
        
            dbl = dblpy.Client()
        
            botid = 264811613708746752  # your bots user id (client id on newer bots)
            token = 'abcxyz'            # DBL Bot Token. Obtainable from https://discordbots.org/api
        
            class Example:
                def __init__(bot):
                    bot = bot
                    session = aiohttp.ClientSession(loop=bot.loop)
        
                async def poststats():
                    await dblpy.post_server_count(botid, dbltoken, 65)
        
                async def getstats():
                    resp = await dblpy.get_server_count(botid)
                    print(json.dumps(resp))
        
        
        .. _discordbots.org: https://discordbots.org/
        .. _discordbots.org/api/docs: https://discordbots.org/api/docs
        
Keywords: discord bot list discordbots botlist
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Classifier: License :: OSI Approved :: MIT License
Classifier: Intended Audience :: Developers
Classifier: Natural Language :: English
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.5
Classifier: Topic :: Internet
Classifier: Topic :: Software Development :: Libraries
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Topic :: Utilities
Requires-Python: >= 3.5
