anstrip is a minimal library to strip ANSI sequences from strings.
Project description
anstrip
anstrip is a minimal library to strip ANSI sequences from strings.
It provides:
PATTERN
, the regex pattern used by the functions of anstripstrip
, a function to remove all the escape sequences from a stringauto_strip
, a function that is similar tostrip
, except that it only removes if the output is a TTYauto_print
, a function that isprint
but with sequence auto-strippingprinted_length
, a function that returns the length of the string as seen on the screen
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
anstrip-0.1.0.post1.tar.gz
(4.2 kB
view hashes)
Built Distribution
Close
Hashes for anstrip-0.1.0.post1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f80fb8d09d70286940c12f5ff9be3bca47c96fa5acb365baea59ec7567bce6ae |
|
MD5 | ee5d8dc76e125c4cabe48d5c4c652436 |
|
BLAKE2b-256 | 8e54ada7bd497aed4460acaf354126cb56221351bbfba58dc332de53edd0e527 |