Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Discord.py Command Line Interface

A library built by Amelia Cabotte and RaviAnand Mohabir.

DiscordPyCLI is a set of command line tools inspired by packages such as npx and vue cli to aid in creating Discord.py bots. The interface enables fast creation of Python projects that follow all the file structure conventions and are typed properly. Goodies such as configuration files, which can be either INI, YAML, Python or .env files are supported as well, and a custom .gitignore keeps your client information safe.

Usage

DiscordPyCLI is launched with the dpy command with numerous options and flags.

Creating a Bot

The dpy create command allows you to use numerous flags and options to create a Discord.py bot which

  • name: The project's name, can be snake, kebab or camel case.
  • --cog: Supply cogs that should be generated with the bot.
  • --basic: Flag to create a simple instance of a commands.Bot, instead of the full class implementation.

Running dpy create my-bot --cog=TestCog and leaving all the prompts at their default will create the following base folder structure:

my-bot /
  .gitignore
  my_bot.py
  requirements.txt
  discord.yaml
  cogs /
    __init__.py
    test_cog.py

By default the script will also generate a boilerplate help command by Dan6erbond#2259 with support for pagination and customized outputs. The bot's command prefix, description and support for Banhammer.py can all be customized during the command-run, as you will be prompted to supply additional information.

Roadmap

  • bot add cog
  • bot add cmd
  • bot db create
  • bot db model

Metadata

Release files for DiscordPyCLI 0.1.0b0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for DiscordPyCLI 0.1.0b0
File Size Uploaded
DiscordPyCLI-0.1.0b0.tar.gz 2.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for DiscordPyCLI 0.1.0b0
File Interpreter ABI Platform
DiscordPyCLI-0.1.0b0-py3-none-any.whl Python 3 none any Details

Total release size: 17.6 kB

Release files / DiscordPyCLI-0.1.0b0.tar.gz

Download URL DiscordPyCLI-0.1.0b0.tar.gz
Size 2.7 kB
Tags Source
SHA-256 checksum
How to use checksums
da1ee4800af76688316f93fd2212d6652b956fafd7153e1451846cbb6da97598
BLAKE2b-256 checksum
How to use checksums
9a49df4e0cf7cfcd2064185c7695ad52b74406422768d1cb796b2d2c11c8390d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.3

Release files / DiscordPyCLI-0.1.0b0-py3-none-any.whl

Download URL DiscordPyCLI-0.1.0b0-py3-none-any.whl
Size 14.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c3ea18d61feef9e07b9d4b8211cdf5c0793bdc2dd9e5d06c239fb4ba7cfcb1b8
BLAKE2b-256 checksum
How to use checksums
f0daa77554398ad69a7ed8b81ae8156af755243855fe00f289c8701c7eb5be16
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.3

Release history Release notifications | RSS feed

This release

0.1.0b0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page