Warning: bfd.py has been deprecated
Please consider using discordlists.py instead which is also available on PyPi.
bfd.py
A simple API wrapper for botsfordiscord.com written in Python.
Installation
Install via pip (recommended)
pip install bfd.py
Features
- POST server count
- AUTOMATIC server count updating
- GET bot info
- GET global bot list
- GET bot list for a specific user
- GET widgets url
- SEARCH for bots
Example Discord.py Rewrite cog
import bfd
import discord
from discord.ext import commands
class BotsForDiscord:
def __init__(self, bot):
self.bot = bot
self.token = 'token' # set this to your BFD token
self.bfd = bfd.Client(self.bot, self.token) # Create a Client instance
self.bfd.start_loop() # Posts the server count every 30 minutes
@commands.command()
async def botinfo(self, ctx, bot: discord.User): # unfiltered botinfo demo
info = await self.bfd.get_bot(bot.id)
if info is None:
await ctx.send("Can't find this bot on BFD")
return
embed = discord.Embed(title="BotInfo")
for key, value in info.as_dict().items():
if key == "" or value == "":
continue
embed.add_field(name=key, value=str(value))
await ctx.send(embed=embed)
def setup(bot):
bot.add_cog(BotsForDiscord(bot))
Discussion, Support and Issues
For general support and discussion of this project, please join the Discord server: https://discord.gg/qyXqA7y
To check known bugs and see planned changes and features for this project, please see the GitHub issues.
Found a bug we don't already have an issue for? Please report it in a new GitHub issue with as much detail as you can!
Metadata
Release files for bfd.py 1.0.2
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 |
|---|---|---|---|---|
| bfd.py-1.0.2.tar.gz | 18.7 kB | Without provenance | Details for bfd.py-1.0.2.tar.gz |
Built distributions (wheels)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| bfd.py-1.0.2-py3.6.egg | Legacy Egg format | - | - | Details for bfd.py-1.0.2-py3.6.egg |
| bfd.py-1.0.2-py3-none-any.whl | Python 3 | none | any | Details for bfd.py-1.0.2-py3-none-any.whl |
Total release size: 36.2 kB
Release files / bfd.py-1.0.2.tar.gz
| Download URL | bfd.py-1.0.2.tar.gz |
|---|---|
| Size | 18.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0edfc150c9cead57d5baff15e00c0383ea5cc50e4971bd3a2eb94853144b1062
|
|
BLAKE2b-256 checksum How to use checksums |
8dee598bb873495f00ba3d9e7827c154fa4afacb71fbef55b53656137bed919f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.6.4
|
Release files / bfd.py-1.0.2-py3.6.egg
| Download URL | bfd.py-1.0.2-py3.6.egg |
|---|---|
| Size | 8.7 kB |
| Tags | Egg |
|
SHA-256 checksum How to use checksums |
22249755b80f56f1d8b42973a71de5cc26bba5b2009cea04276e8682970ca070
|
|
BLAKE2b-256 checksum How to use checksums |
71c4468d4b2113390e856afc164b21d019efd220bb3195b00ad2a0b558b50533
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.6.4
|
Release files / bfd.py-1.0.2-py3-none-any.whl
| Download URL | bfd.py-1.0.2-py3-none-any.whl |
|---|---|
| Size | 8.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
93cc5a2de8ca541d1b0af0a5b916ded38838ac89544cb1ff4e9b964eb7ad33b2
|
|
BLAKE2b-256 checksum How to use checksums |
335607c40c69c94945bb0cd6cc3fe45398cc5b9a2f1b60220e4c54cbc8f6b56e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.6.4
|
Security for bfd.py 1.0.2
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.