disclist-0.0.2
توضیحات
A simple asynchronous/synchronous wrapper for https://disclist.noxitb.repl.co/ Bot List.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | disclist-0.0.2 |
| نام | disclist |
| نسخه کتابخانه | 0.0.2 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | proguy914629 |
| ایمیل نویسنده | - |
| آدرس صفحه اصلی | - |
| آدرس اینترنتی | https://pypi.org/project/disclist/ |
| مجوز | MIT |
# Guides:
Here are guides of how to use this Python Wrapper.
## Initiating your Client:
```py
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:
```py
# 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:
```py
# 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:
```py
# 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](https://discord.gg/nZPaZbzYsb) to ask for help!
# License:
MIT
نیازمندی
| مقدار | نام |
|---|---|
| >=3.7.4,<4.0.0 | aiohttp |
| >=2.25.1,<3.0.0 | requests |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.5 | Python |
نحوه نصب
نصب پکیج whl disclist-0.0.2:
pip install disclist-0.0.2.whl
نصب پکیج tar.gz disclist-0.0.2:
pip install disclist-0.0.2.tar.gz