[three]Bean

python ansi2html makes taskwarrior fantas(k)tic

Oct 28, 2011 | categories: python, gtd View Comments

Over a year ago, I wrote a python module called ansi2html that takes colored ansi as input and produces colored, formatted html.

With it you can do something like the following:

$ ls --color=always | ansi2html > directory.html
$ sudo tail /var/log/messages | ccze -A | ansi2html > logs.html

Much more recently I discovered taskwarrior, a command line todo list manager that rocks. It features the ability to produce burndown charts of your todos over time.

I use the following in a cronjob to produce an online version of my burndown chart.

$ task burndown | ansi2html | ssh me@web "cat > ~/static/burndown.html"

My regularly-updated chart is hosted on threebean.org.

If you come up with any neat uses for ansi2html, please let me know. I'd love to hear about them.

View Comments
blog comments powered by Disqus