A library allowing you to use Minecraft format codes in strings.


Keywords
ansi, cli, color, dahlia, python, terminal, text-formatting
License
MIT
Install
pip install dahlia==1.1.0

Documentation

Dahlia spec Poetry Ruff

Dahlia

Dahlia is a simple text formatting package, inspired by text formatting in the game Minecraft.

Installation

Dahlia is available on PyPI and can be installed with pip, or any other Python package manager:

$ pip install dahlia

(Some systems may require you to use pip3, python -m pip, or py -m pip instead)

Contributing

Contributions are welcome!

Please open an issue before submitting a pull request (unless it's a minor change like fixing a typo).

To get started:

  1. Clone your fork of the project.
  2. Set up the project with just install (make sure you have poetry installed).
  3. After you're done, run just check to check your changes.

Note

If you don't want to install just, simply look up the recipes in the project's justfile.

License

Dahlia is licensed under the MIT License.

If you have any questions, or would like to get in touch, join my Discord server!