Skip to main content

Extensible Discord bot framework based on Discord.py

Project description

Grace Framework

Build powerful Discord bots, without the boilerplate.

Static Badge Join on Discord Tests

What is Grace Framework

Grace Framework is an opinionated, extensible Discord bot framework built on top of discord.py. It comes with a various tools designed to help you rapidly build scalable, feature-rich Discord bots with minimal boilerplate.

Key features

  • Quick to start: Generate a full-featured bot in seconds
  • Modular Architecture: Clean separation of features via extensions
  • Database Integration: Easily connect your bot to a persistent backend
  • Built-in Generators: Create extensions, models and more with a single command

Inspiration

Grace Framework was inspired by the evolution of our community discord bot, Grace, that evolved, gaining support for modular extensions, database integrations, and rapid feature development — it began to resemble a standalone framework. Recognizing its potential, we decided to extracted its architecture into Grace Framework, making its ease-of-use and flexibility available to developers everywhere.

Getting Started

1- Install the package

requirements

  • Python 3.10 or higher
  • SQLite (or Postgresql, MySQL & MariaDB, Oracle, and MS-SQL)
$ pip install grace-framework

To install the development version:

$ git clone https://github.com/Code-Society-Lab/grace-framework.git
$ cd grace-framework
$ pip install -e .

Note: It is recommended to use a virtual environment when installing python packages.

2- Generate a new bot

$ grace new my-awesome-bot
$ cd my-awesome-bot

3- Set your bot token

Edit the .env in the project directory and set DISCORD_TOKEN.

DISCORD_TOKEN=YOUR TOKEN

4- Run your bot

$ grace run

5- Start building!

Check out the official wiki for guides, architecture, and API reference.

Contributing

We welcome everyone to contribute!

Whether it's fixing bugs, suggesting features, or improving the docs - every bit helps.

  • Submit an issue
  • Open a pull request
  • Or just hop into our Discord community and say hi!

If you intend to contribute, please read the CONTRIBUTING.md first. Additionally, every contributor is expected to follow the code of conduct.

License

Grace Framework is released under GPL-3.0

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

grace_framework-1.0.5a0.tar.gz (73.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

grace_framework-1.0.5a0-py3-none-any.whl (48.6 kB view details)

Uploaded Python 3

File details

Details for the file grace_framework-1.0.5a0.tar.gz.

File metadata

  • Download URL: grace_framework-1.0.5a0.tar.gz
  • Upload date:
  • Size: 73.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for grace_framework-1.0.5a0.tar.gz
Algorithm Hash digest
SHA256 6e351be131179a33c6fc5817c43a3a7774b705dbf8d0c0478c062507de835b87
MD5 e65864952cd7eb4fc3d7c5ca55276b85
BLAKE2b-256 45e56ad2a9199d21ce6bbe87c25256169a715dfd68e3aad162456dbcf3e57b5e

See more details on using hashes here.

Provenance

The following attestation bundles were made for grace_framework-1.0.5a0.tar.gz:

Publisher: publish.yml on Code-Society-Lab/grace-framework

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file grace_framework-1.0.5a0-py3-none-any.whl.

File metadata

File hashes

Hashes for grace_framework-1.0.5a0-py3-none-any.whl
Algorithm Hash digest
SHA256 fa13f68d344a13a8176af60b02c0cc435418cdabd70fa731193f7afeddd8e06a
MD5 1c14145afe04812da85c58928bca8fa6
BLAKE2b-256 880d2b44f858ba2d7c8247dd0ac0fe49fe8a67f6b29966806d9a30b7e30a8ea1

See more details on using hashes here.

Provenance

The following attestation bundles were made for grace_framework-1.0.5a0-py3-none-any.whl:

Publisher: publish.yml on Code-Society-Lab/grace-framework

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page