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.
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
License
ansi2html is licensed LGPLv3+.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Filename, size | File type | Python version | Upload date | Hashes |
---|---|---|---|---|
Filename, size ansi2html-1.6.0-py3-none-any.whl (14.4 kB) | File type Wheel | Python version py3 | Upload date | Hashes View |
Filename, size ansi2html-1.6.0.tar.gz (36.1 kB) | File type Source | Python version None | Upload date | Hashes View |
Close
Hashes for ansi2html-1.6.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9fa44ca8fb8c417a05a9af1c62e192694b0fcec269ab55f130b5b26e260d0b7c |
|
MD5 | 679e62ea53c0fc8b2bca8d4ed5a3fa6e |
|
BLAKE2-256 | c6853a46be84afbb16b392a138cd396117f438c7b2e91d8dc327621d1ae1b5dc |