A simple asynchronous/synchronous wrapper for https://disclist.noxitb.repl.co/ Bot List.
Project description
Guides:
Here are guides of how to use this Python Wrapper.
Initiating your Client:
from disclist import Client
client = Client(token="...", sync=True) # sync is a kwarg to set if functions need to be async or not. Defaults to True.
Posting Stats:
# If you set sync to True, it will not need to be awaited
# Else, it needs to.
# You can check it using `client.sync` or see the kwarg you set
# if you are unsure.
# For synchronous:
client.post_stats(server_count=1) # Set your server count to 1.
# For asynchronous:
await client.post_stats(server_count=1) # Set your server count to 1.
For checking if user has voted or not:
# For synchronous:
has_voted = client.has_voted(user_id=1234567890)
# For asynchronous:
has_voted = await client.has_voted(user_id=1234567890)
print(has_voted) # True/False
For searching a bot using it's ID:
# For synchronous:
result = client.search(bot_id=1234567890)
# For asynchronous:
result = await client.search(bot_id=1234567890)
print(result) # {'...': ...}, Returns a dict.
Where should I ask help?
Join our discord to ask for help!
License:
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
disclist-0.0.2.tar.gz
(3.7 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file disclist-0.0.2.tar.gz.
File metadata
- Download URL: disclist-0.0.2.tar.gz
- Upload date:
- Size: 3.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.4.0 pkginfo/1.6.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.8.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5f779dfe4104560db6f69ef93276bd8aaab31290ece3daaa72da64df515f1c8b
|
|
| MD5 |
a543d60ebbde83feff8f44ac8a6320a2
|
|
| BLAKE2b-256 |
4ede074ac8ed77fe06d8515b7f0cd6a80e266e97ba5232079ea147a697dbc106
|
File details
Details for the file disclist-0.0.2-py3-none-any.whl.
File metadata
- Download URL: disclist-0.0.2-py3-none-any.whl
- Upload date:
- Size: 4.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.4.0 pkginfo/1.6.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.8.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
51f1c95ad8c0546def2b37237c5c6e986e2a4c9299f3dd93c0f2e2e6326a55c3
|
|
| MD5 |
0c3e7e12ceaea1045caf74674864dfce
|
|
| BLAKE2b-256 |
686775a192f81e17a3ce8e6e29affba84f06e3e76f4ec5dbbffdbacdd7959e76
|