Skip to main content

Convert text with ANSI color codes to HTML

Project description

Convert text with ANSI color codes to HTML

Inspired by and developed off of the work of pixelbeat and blackjack.

Example

>>> conv = Ansi2HTMLConverter()
>>> ansi = " ".join(sys.stdin.readlines())
>>> html = conv.convert(ansi)

Get this project:

Source: http://github.com/ralphbean/ansi2html/

pypi: http://pypi.python.org/pypi/ansi2html/

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

ansi2html-0.6.0.tar.gz (15.6 kB view details)

Uploaded Source

Built Distribution

ansi2html-0.6.0-py2.6.egg (6.6 kB view details)

Uploaded Source

File details

Details for the file ansi2html-0.6.0.tar.gz.

File metadata

  • Download URL: ansi2html-0.6.0.tar.gz
  • Upload date:
  • Size: 15.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for ansi2html-0.6.0.tar.gz
Algorithm Hash digest
SHA256 fb1ed2989b5ecafdcbbf1e424372f4ee434a2ff33d0ad7602a98fe0e0747d602
MD5 969cb11d467fa0eeee9dce3d3468b1bb
BLAKE2b-256 3287f106d19eda67db671cd883834d628bd35300e8e76e3074130d5804a2995c

See more details on using hashes here.

File details

Details for the file ansi2html-0.6.0-py2.6.egg.

File metadata

File hashes

Hashes for ansi2html-0.6.0-py2.6.egg
Algorithm Hash digest
SHA256 8897afd5081d477e4f471898d73f28055984f797cbe8db23f3d037b037ddf96e
MD5 51a8fc2cf2f3ac64c92a3250c31dcb02
BLAKE2b-256 2c10631e3c9f9cf516efd4f440692c50ebe87aead8f005301df57bab2fdb0d8d

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