A simple and easy-to-use unofficial python wrapper around the Electro discord bot list api
Project description
Edblpy
Edblpy is an unofficial python module utilizing the electro discord bot list [api](https://www.edbl.xyz/api) . Easy to use and well documented!Getting started
- You must have ython 3*
- A bot's / user's id
- Install the module using pip :
pip install edblpy
- Import what you need :
from edblpy import Bot
orfrom edblpy import User
- View more about usage in the docs section
Docs
Class : Bot
Params ( name , description , type , default )
id : The bot's id (Required when retrieving info) : integer : None
token : Your token (Required when posting the bot's status) : string : None
Methods ( name , description , params , returns)
get_info : Gets the bot's info : None
: Dict
post_status : Posts the server/user count to the DB , requires auth : user_count , server_count
: Dict
Class : User
Params ( name , description , type , default )
id : The user's id (Required) : integer : None
Methods ( name , description , params , returns)
get_info : Gets the user's info : None
: Dict
Examples
Getting a user's info
from edblpy import User
jake = User(480407581085532180)
print(jake.get_info())
Getting a bot's info
from edblpy import Bot
mika = Bot(631669116926820353)
print(mika.get_info())
Posting a bot's status
from edblpy import Bot
mika = Bot(631669116926820353 , 'YOUR_SUPER_SECRET_TOKEN')
print(mika.post_status(user_count=100 , server_count=100)) # you should probably make the counts dynamic
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
edblpy-1.4.0.tar.gz
(2.9 kB
view details)
Built Distribution
File details
Details for the file edblpy-1.4.0.tar.gz
.
File metadata
- Download URL: edblpy-1.4.0.tar.gz
- Upload date:
- Size: 2.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.44.1 CPython/3.7.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5f7150e52b295c1237be7749213639af8f867c4c33e6b7e5397ed4e2dd58c838 |
|
MD5 | 0df6589306e1564c78ab388dedf8ce6a |
|
BLAKE2b-256 | 0c811fa143ab77fc4c71e86b3b4a310964bab7085eb3ee5b90f13b1b921c781d |
File details
Details for the file edblpy-1.4.0-py3-none-any.whl
.
File metadata
- Download URL: edblpy-1.4.0-py3-none-any.whl
- Upload date:
- Size: 3.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.44.1 CPython/3.7.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 844ac3d980f93d60b6fafeefb03a826b864f48f47d9a765e9d36848203974e36 |
|
MD5 | 79e9fb6459f51cdd116081cc8a13999e |
|
BLAKE2b-256 | b9cf9afae864a8a1562ecd42b3b9ff525fcd9a30081cfb70bb94b603b0e5161f |