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 TTYprint, a function that is similar to the built-inprintbut 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.2.2.tar.gz
(4.3 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file anstrip-0.2.2.tar.gz.
File metadata
- Download URL: anstrip-0.2.2.tar.gz
- Upload date:
- Size: 4.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
eb959e44d2513d4453c576ed0c15e49bc278dc5175cff78a9dcb551c6341af6e
|
|
| MD5 |
8367c3b55c1de669df45189835eb876f
|
|
| BLAKE2b-256 |
ca466793b9564f5132cae98d9bfef46f73f3b5f160265d1c9aeea84726af3365
|
File details
Details for the file anstrip-0.2.2-py3-none-any.whl.
File metadata
- Download URL: anstrip-0.2.2-py3-none-any.whl
- Upload date:
- Size: 5.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
52d19b8c2d83ed60afbb0306bd88377d87832b69a78966e8357e32e6e9973032
|
|
| MD5 |
fd407200ac93a14e2c2c880712c45b1a
|
|
| BLAKE2b-256 |
32cdef72268605e99026d43a2ce523a9cddd1416285e35f8f2c4fbaa384696d6
|