thtml

Python package and CLI app for converting ANSI formatted text to HTML

MIT License

Downloads
659
Stars
1
Committers
1

thtml

thtml (to HTML) is a CLI tool and Python package for converting text to HTML.

For example, to pipe a command through thtml:

ls -al --color | thtml
<!doctype html><html>...</html>

Include --open to send the HTML directly to your default browser:

ls -al --color | thtml --open

Full documentation: thtml.readthedocs.io

Installation

thtml requires Python 3.8 or later.

pip install thtml

👋 Hello!

Hello! I'm Cariad Eccleston and I'm an independent/freelance software engineer. If my work has value to you, please consider sponsoring.

If you ever raise a bug, request a feature or ask a question then mention that you're a sponsor and I'll respond as a priority. Thank you!

Package Rankings
Top 21.24% on Pypi.org
Badges
Extracted from project README
CircleCI codecov Documentation Status
Related Projects