Skip to main content

Module to strip ANSI escape codes from strings

Project description

Ansistrip

Module to strip ANSI Escape codes from a string.

Installation

Install with pip

pip3 install -U ansistrip

Usage

In [1]: import ansistrip

In [2]: text =  "\x1b[1m\x1b[38;5;10mtest\x1b0m"

In [3]: ansistrip.ansi_strip(text)

Out[3]: 'test'

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ansistrip-0.2.0.tar.gz (2.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ansistrip-0.2.0-py3-none-any.whl (2.9 kB view details)

Uploaded Python 3

File details

Details for the file ansistrip-0.2.0.tar.gz.

File metadata

  • Download URL: ansistrip-0.2.0.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for ansistrip-0.2.0.tar.gz
Algorithm Hash digest
SHA256 4bb55de0f6c22ef6842e9b0205842d15742db669f7b2412a6cbb14c26d688266
MD5 d7fe04aec87da7dacdbfc340877bc1dc
BLAKE2b-256 1ff76cf3e15adbeea90026a8ebdc30932762bfef8512172ed8b7731fc5f7d5df

See more details on using hashes here.

File details

Details for the file ansistrip-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: ansistrip-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 2.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for ansistrip-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e9d66920734ff5746df13dcc68c6ba24fc2c16cb3b93ee7b955b8ee007043ce2
MD5 aabee88145dccf2f2f66301c92d79f21
BLAKE2b-256 161c26c9d9ead89bb670a5dd2cf2f53b0d1d2d46da07a2f0486ab2fa898408fe

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page