danbot-hosting-py
A Python API Wrapper for the DanBot Hosting API
Installation
For Windows:
pip install danbot-hosting-py
For Linux/MacOS
pip3 install danbot-hosting-py
Quick Example
from discord.ext import commands
from danbot_api import DanBotClient
bot = commands.Bot(command_prefix='>', description="This is a Helper Bot")
@bot.event
async def on_ready():
DanBotClient(bot, key="your_dbh_key", autopost=True)
print('Bot is Online')
@bot.event
async def on_dbh_post(data):
print("Posted Bot Data to DBH. Data Posted:")
print(data)
@bot.command()
async def ping(ctx):
await ctx.send('pong!')
bot.run("your bot's token here")
FAQ
How do you get an API key?
Go to the discord server and use the DBH!ApiKey command in a respective text channel there!
I'm having trouble with the module
You may post at the issues section in Github or message me on Discord! (Makiyu^#4707)
Links
Metadata
Release files for danbot-hosting-py 1.0
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 |
|---|---|---|---|---|
| danbot-hosting-py-1.0.tar.gz | 5.3 kB | Without provenance | Details for danbot-hosting-py-1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| danbot_hosting_py-1.0-py3-none-any.whl | Python 3 | none | any | Details for danbot_hosting_py-1.0-py3-none-any.whl |
Total release size: 11.6 kB
Release files / danbot-hosting-py-1.0.tar.gz
| Download URL | danbot-hosting-py-1.0.tar.gz |
|---|---|
| Size | 5.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
591ab0eb1956b680e32a54500d096c2accf146139e548a842561a336fc4a2509
|
|
BLAKE2b-256 checksum How to use checksums |
548a782797c5352afe376238c69bd8848784f30dc03bc22b220f0b63f33e59a5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.3.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.9.5
|
Release files / danbot_hosting_py-1.0-py3-none-any.whl
| Download URL | danbot_hosting_py-1.0-py3-none-any.whl |
|---|---|
| Size | 6.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ae773d8f090418a5fe29272feacd39aa822da612181459f9b56fcddb2dc5837f
|
|
BLAKE2b-256 checksum How to use checksums |
28d41de167f4af5701facf415b61ff3a71e18e40724f2925bdfc28082da9e957
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.3.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.9.5
|
Security for danbot-hosting-py 1.0
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.