【文件属性】:
文件名称:ansi2html:将带有ANSI颜色代码的文本转换为HTML
文件大小:41KB
文件格式:ZIP
更新时间:2021-05-14 12:43:13
Python
ansi2html
作者:
拉尔夫·宾恩< >
贡献者:
罗宾·施耐德< >
将具有ANSI颜色代码的文本转换为HTML或LaTeX。
受和启发和发展。
建置状态
分支
地位
掌握
开发
示例-Python API
>>> from ansi2html import Ansi2HTMLConverter
>>> conv = Ansi2HTMLConverter()
>>> ansi = " " .join(sys.stdin.readlines())
>>> html = conv.convert(ansi)
示例-Shell用法
$ ls --color=always | ansi2html > directories.html
$ sudo tail /var/log/messages | ccze -A | ansi2html > logs.html
$ task
【文件预览】:
ansi2html-master
----MANIFEST.in(186B)
----README.rst(2KB)
----.github()
--------release-drafter.yml(589B)
--------workflows()
----CHANGELOG.rst(22KB)
----.pylintrc(710B)
----tox.ini(1KB)
----LICENSE(7KB)
----setup.cfg(2KB)
----setup.py(336B)
----Makefile(1011B)
----.pre-commit-config.yaml(1KB)
----man()
--------ansi2html.1.txt(2KB)
--------asciidoc.conf(0B)
--------.gitignore(13B)
----tests()
--------ansicolor.html(8KB)
--------ansicolor_eix.html(12KB)
--------produce_headers.txt(37KB)
--------test_ansi2html.py(15KB)
--------ansicolor_eix.txt(5KB)
--------ansicolor.txt(2KB)
----.gitignore(49B)
----pyproject.toml(265B)
----ansi2html()
--------util.py(88B)
--------__init__.py(85B)
--------__main__.py(76B)
--------converter.py(21KB)
--------style.py(7KB)