No project description provided
Project description
ansi2html
- 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.
Read the docs for more informations.
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:
$ pip3 install 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.8.0.tar.gz
(44.1 kB
view details)
Built Distribution
ansi2html-1.8.0-py3-none-any.whl
(16.7 kB
view details)
File details
Details for the file ansi2html-1.8.0.tar.gz
.
File metadata
- Download URL: ansi2html-1.8.0.tar.gz
- Upload date:
- Size: 44.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 38b82a298482a1fa2613f0f9c9beb3db72a8f832eeac58eb2e47bf32cd37f6d5 |
|
MD5 | 21a2e083e288dfe73538bbef1f4291ef |
|
BLAKE2b-256 | 6288491c699c135c63e4420f69e348c9f14559b82c2b81f5b4c698ae5c374a88 |
File details
Details for the file ansi2html-1.8.0-py3-none-any.whl
.
File metadata
- Download URL: ansi2html-1.8.0-py3-none-any.whl
- Upload date:
- Size: 16.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ef9cc9682539dbe524fbf8edad9c9462a308e04bce1170c32daa8fdfd0001785 |
|
MD5 | 402dc63e70a390abe7a6459d8e1ee309 |
|
BLAKE2b-256 | e67fff656e2c8e83873122cc22d345fb68f82a005f19848b04e53e49361ac547 |