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.4.tar.gz (15.6 kB view details)

Uploaded Source

File details

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

File metadata

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

File hashes

Hashes for ansi2html-0.6.4.tar.gz
Algorithm Hash digest
SHA256 b3fd345c21126768e0502349da24e0b2faab6fc80f6b9f63e4af2453dda52b9e
MD5 ae328ac8b1f0456fdba7632884348b4b
BLAKE2b-256 f2052f97f2312a9bb667b6d34a8c33ddd362b21fd210017c1ee40cee7b2bbd0c

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