Skip to main content

No project description provided

Project description

Author:

Ralph Bean <rbean@redhat.com>

Contributor:

Robin Schneider <ypid23@aol.de>

Convert text with ANSI color codes to HTML or to LaTeX.

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

Build Status

Branch

Status

master

Build Status - master branch

develop

Build Status - develop branch

Example - Python API

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

Example - Shell Usage

$ ls --color=always | ansi2html > directories.html
$ sudo tail /var/log/messages | ccze -A | ansi2html > logs.html
$ task rc._forcecolor:yes limit:0 burndown | ansi2html > burndown.html

See the list of full options with:

$ ansi2html --help

Get this project:

$ sudo yum install python-ansi2html

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

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

License

ansi2html is licensed LGPLv3+.

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-1.6.0a1.tar.gz (36.7 kB view details)

Uploaded Source

Built Distribution

ansi2html-1.6.0a1-py3-none-any.whl (14.4 kB view details)

Uploaded Python 3

File details

Details for the file ansi2html-1.6.0a1.tar.gz.

File metadata

  • Download URL: ansi2html-1.6.0a1.tar.gz
  • Upload date:
  • Size: 36.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.6

File hashes

Hashes for ansi2html-1.6.0a1.tar.gz
Algorithm Hash digest
SHA256 67ca7bedea94d880d1ac5575ed700693bc1ca4f68ba801d4f2fd3b01aff088a6
MD5 c8c4b5f8f31a824db5a19fa7d4fe40ee
BLAKE2b-256 4530024b5b12cf473318d5c9750ec98e9a7bf0332598ab18a5f95e24bd6762a9

See more details on using hashes here.

File details

Details for the file ansi2html-1.6.0a1-py3-none-any.whl.

File metadata

  • Download URL: ansi2html-1.6.0a1-py3-none-any.whl
  • Upload date:
  • Size: 14.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.6

File hashes

Hashes for ansi2html-1.6.0a1-py3-none-any.whl
Algorithm Hash digest
SHA256 0fd4540ca5d003ec54a49432f2f2b4923904cb045774e74b534ecb4eb1734b52
MD5 39de8d729af1e37ffd0b51f38a59c4bf
BLAKE2b-256 b0db783a75bfd2aa0a724622dbcdb3aa9d79dc2eb5d99c03be4ab51656d311d7

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