Skip to main content

Strip ANSI escape sequences from a string

Project description

Strip ANSI escape sequences from a string

Installation

strip-ansi is available on on PyPI:

pip install strip_ansi

Usage

>>> from strip_ansi import strip_ansi
>>> strip_ansi("\033[38mLorem ipsum\033[0m")
"Lorem ipsum"

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

strip-ansi-0.1.1.tar.gz (1.7 kB view details)

Uploaded Source

Built Distribution

strip_ansi-0.1.1-py3-none-any.whl (1.8 kB view details)

Uploaded Python 3

File details

Details for the file strip-ansi-0.1.1.tar.gz.

File metadata

  • Download URL: strip-ansi-0.1.1.tar.gz
  • Upload date:
  • Size: 1.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.5 CPython/3.8.3 Linux/5.6.16-1-MANJARO

File hashes

Hashes for strip-ansi-0.1.1.tar.gz
Algorithm Hash digest
SHA256 5d60f239cc8a37fdd52b43c3e66e893d45ba0423115db59eca0d2eef83b07729
MD5 bf9840c9ed7534c77177dcb2d4f520d5
BLAKE2b-256 b9bd273a435b7f9fd111b22f740b2661b6b734938c93d86531f9689747323c43

See more details on using hashes here.

File details

Details for the file strip_ansi-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: strip_ansi-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 1.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.5 CPython/3.8.3 Linux/5.6.16-1-MANJARO

File hashes

Hashes for strip_ansi-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9f55280e1b0ba84dac49d4f18aa6b51b90ff766b22e4918ffc01cc87b394ecd1
MD5 84350b15aa96d10672ce4602482251ce
BLAKE2b-256 22a1077deda41f949b3412434fda858396ee9927a3260a43537c2ae333bd688c

See more details on using hashes here.

Supported by

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