No project description provided
Project description
- 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 |
|
develop |
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.
Source Distribution
ansi2html-1.6.0.tar.gz
(36.1 kB
view details)
Built Distribution
ansi2html-1.6.0-py3-none-any.whl
(14.4 kB
view details)
File details
Details for the file ansi2html-1.6.0.tar.gz
.
File metadata
- Download URL: ansi2html-1.6.0.tar.gz
- Upload date:
- Size: 36.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.52.0 CPython/3.8.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0f124ea7efcf3f24f1f9398e527e688c9ae6eab26b0b84e1299ef7f94d92c596 |
|
MD5 | 52279d05a63449caf698f2d4a250ff72 |
|
BLAKE2b-256 | a28be84f2a810fff71bb2820a40b68f47a75c7948144a997b30bb0b36d0f6593 |
File details
Details for the file ansi2html-1.6.0-py3-none-any.whl
.
File metadata
- Download URL: ansi2html-1.6.0-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.6.1 requests/2.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.52.0 CPython/3.8.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9fa44ca8fb8c417a05a9af1c62e192694b0fcec269ab55f130b5b26e260d0b7c |
|
MD5 | 679e62ea53c0fc8b2bca8d4ed5a3fa6e |
|
BLAKE2b-256 | c6853a46be84afbb16b392a138cd396117f438c7b2e91d8dc327621d1ae1b5dc |