A formatter and language file validator for Python Discord bots.
- ✏️ Includes formatters for
Pycordanddiscord.py. - 📚 Format and compare YAML files.
- 📝 Supports Ezcord language files.
Installing
Python 3.10 or higher is required.
pip install bot-formatter
Usage
To format a file, run:
bot-formatter main.py
To format YAML language files in a directory, run:
bot-formatter --lang path/to/language/dir
To view all available options, run:
bot-formatter --help
For a full overview, see the documentation.
Pre-Commit
To use bot-formatter as a pre-commit hook, add the following lines to your .pre-commit-config.yaml:
- repo: https://github.com/CookieAppTeam/bot-formatter
rev: 0.1.3
hooks:
- id: bot-formatter
Metadata
Release files for bot-formatter 0.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| bot_formatter-0.1.3.tar.gz | 9.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| bot_formatter-0.1.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 20.4 kB
Release files / bot_formatter-0.1.3.tar.gz
| Download URL | bot_formatter-0.1.3.tar.gz |
|---|---|
| Size | 9.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8eeb86b3ba8ead78e4c7ecb01950e86d71ef93477b9ec897f3b005dbc34c2069
|
|
BLAKE2b-256 checksum How to use checksums |
9397d0e7e83aa015dc10d67842d575bb055934d4cc04cbf62bd66d0faa05d75b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 28, 2026.
Transparency logRelease files / bot_formatter-0.1.3-py3-none-any.whl
| Download URL | bot_formatter-0.1.3-py3-none-any.whl |
|---|---|
| Size | 10.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
666c046d90bb97e065f752bb1deb66eefb02ef29f5369fd4af4ce4dcfcac0453
|
|
BLAKE2b-256 checksum How to use checksums |
9370b90a1b17afdbb5296e7c0f3a45e31e4ce7a31ee1f277e1269cea810e9b9b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 28, 2026.
Transparency log