Changelog

All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog and this project adheres to Semantic Versioning.

1.0.0 (2021-01-19)

No significant changes.

0.5.0 (2021-01-07)

Features

  • Automatically casting values applied to Chalk to strings. This will fix issues where the user wants to easily use an instance of some class in a templated string without having to cast it to a string themselves.

    1
    2
    3
    4
    5
    6
    7
    8
    from chalky import fg
    
    class MyObject:
    
        def __str__(self) -> str:
            return f"{self.__class__.__qualname__!s}()"
    
    print(fg.green | MyObject())
    

0.4.0 (2020-12-28)

Features

  • Consuming the current chain’s styles and colors if chalk() is consumed. This helps with constructing reusable styles with the chaining syntax:

    1
    2
    3
    4
    5
    6
    7
    8
    9
    from chalky import chain
    
    # previously not possible
    error = chain.bold.white.bg.red
    success = chain.bold.bright_green
    
    # now possible
    error = chain.bold.white.bg.red.chalk
    success = chain.bold.bright_green.chalk
    

0.3.0 (2020-12-25)

Features

  • Including a global configure() callable to handle configuring the entire module. At the moment, the only feature we are adding is the ability to completely disable the actual application of styles and colors through the disable flag.

Documentation

  • Adding some simple chalky chaining documentation.

0.2.0 (2020-12-24)

Features

  • Adding an interface for producing styles and colors using chained properties.
    Usage looks like this:
    1
    2
    from chalky import chain
    print(chain.bold.blue | "I'm blue bold text!")
    

Documentation

  • Adding some chaining documentation.

  • Adding basic usage documentation for the initial release.

Miscellaneous

  • Adding a basic Chalky logo to make the documentation a bit more friendly.

0.1.0 (2020-12-23)

Miscellaneous

  • Adding the contents of an initial alpha release.