在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:pycontribs/ansi2html开源软件地址:https://github.com/pycontribs/ansi2html开源编程语言:Python 74.7%开源软件介绍:ansi2html
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 Source: https://github.com/pycontribs/ansi2html/ pypi: https://pypi.org/project/ansi2html/ License
|
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论