Chalky

Latest version: v0.5.0

Safety actively analyzes 682334 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

0.5.0

====================================================================================

Features
--------

- Automatically casting values applied to :class:`~chalky.chalk.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.

.. code-block:: python
:linenos:

from chalky import fg

class MyObject:

def __str__(self) -> str:
return f"{self.__class__.__qualname__!s}()"

print(fg.green | MyObject())

0.4.0

====================================================================================

Features
--------

- Consuming the current chain's styles and colors if :meth:`~.chain.Chain.chalk` is consumed.
This helps with constructing reusable styles with the chaining syntax:

.. code-block:: python
:linenos:

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

====================================================================================

Features
--------

- Including a global :func:`~.constants.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

====================================================================================

Features
--------

- | Adding an interface for producing styles and colors using chained properties.
| Usage looks like this:

.. code-block:: python
:linenos:

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

====================================================================================

Miscellaneous
-------------

- Adding the contents of an initial alpha release.

Links

Releases

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.