Skip to main content

anstrip

PyPI

anstrip is a minimal library to strip ANSI sequences from strings.

It provides:

  • PATTERN, the regex pattern used by the functions of anstrip
  • strip, a function to remove all the escape sequences from a string
  • auto_strip, a function that is similar to strip, except that it only removes if the output is a TTY
  • print, a function that is similar to the built-in print but with sequence auto-stripping
  • printed_length, a function that returns the length of the string as seen on the screen

Release files for anstrip 0.2.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for anstrip 0.2.2
File Size Uploaded
anstrip-0.2.2.tar.gz 4.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for anstrip 0.2.2
File Interpreter ABI Platform
anstrip-0.2.2-py3-none-any.whl Python 3 none any Details

Total release size: 9.8 kB

Release files / anstrip-0.2.2.tar.gz

Download URL anstrip-0.2.2.tar.gz
Size 4.3 kB
Tags Source
SHA-256 checksum
How to use checksums
eb959e44d2513d4453c576ed0c15e49bc278dc5175cff78a9dcb551c6341af6e
BLAKE2b-256 checksum
How to use checksums
ca466793b9564f5132cae98d9bfef46f73f3b5f160265d1c9aeea84726af3365
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.11.9

Release files / anstrip-0.2.2-py3-none-any.whl

Download URL anstrip-0.2.2-py3-none-any.whl
Size 5.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
52d19b8c2d83ed60afbb0306bd88377d87832b69a78966e8357e32e6e9973032
BLAKE2b-256 checksum
How to use checksums
32cdef72268605e99026d43a2ce523a9cddd1416285e35f8f2c4fbaa384696d6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.11.9

Release history Release notifications | RSS feed

This release

0.2.2 This release

2 release files

0.2.1

2 release files

0.2.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page