Coquille is a library that wraps terminal escape sequences as convenient functions.
Project description
Coquille
Coquille (IPA: /kɔ.kij/
, english: 'shell' or 'typo') is a library that wraps terminal escape sequences to easily apply them to a stream.
Notes
Requires Python 3.9 or higher.
This library attempts to cover as many escape sequences as possible ; but it is not an exhaustive list, some might be missing. Also, you might find that few have no effect on your terminal emulator.
Examples
Coquille context manager
from coquille import Coquille
from coquille.sequences import bold, fg_magenta, italic
print("Hello World!")
# By default, the coquille wraps the standard output
with Coquille.new(fg_magenta, italic) as coquille:
print("Hello World, but in magenta and italic!")
coquille.apply(bold)
print("Now, with a touch of bold :D")
print("Oh, we are back to normal now...")
Source code: examples/coquille_context/
Documentation
Coming soon! 🚧
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Coquille-0.1.0.tar.gz
(42.3 kB
view hashes)