toppy
An API wrapper made for discord.py or any forks for Discord Bot List, DiscordBotsGG, and Top.gg.
Documentation
Installation
Python 3.8 or higher is needed
$ pip install -U toppy-python
Example
import toppy
from discord.ext import commands
dbl_token = 'Your Discord Bot List token here'
dbgg_token = 'Your DiscordBotsGG API token here'
topgg_token = 'your Top.gg token here'
bot = commands.Bot('!') # or discord.Client()
toppy_client = toppy.Client(
bot,
dbl_token=dbl_token,
dbgg_token=dbgg_token,
topgg_token=topgg_token
)
@bot.event
async def on_dbl_autopost_success(): # dbl/dbgg/topgg
print('Server count posted')
print(f'Server count: {len(bot.guilds)}')
@bot.event
async def on_dbl_autopost_error(error: toppy.HTTPException): # dbl/dbgg/topgg
print(f'Uh oh. An error occurred. Status: {error.resp.status}')
bot.run(...)
Metadata
Release files for toppy-python 2.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| toppy-python-2.0.1.tar.gz | 18.1 kB | Without provenance | Details for toppy-python-2.0.1.tar.gz |
Release files / toppy-python-2.0.1.tar.gz
| Download URL | toppy-python-2.0.1.tar.gz |
|---|---|
| Size | 18.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
398a1adb3f200bf85b6a67bfbac53ed9f026d381b9e6dfaf5ef7a8d9207dda4d
|
|
BLAKE2b-256 checksum How to use checksums |
a1feccfa41a763f8b093d0c7e5316dbed87b703fb1e02577f4a0d6dc0b5d81c9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.10.2
|
Security for toppy-python 2.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.