GithubHelp home page GithubHelp logo

p-sherratt / ansi2html Goto Github PK

View Code? Open in Web Editor NEW

This project forked from pycontribs/ansi2html

0.0 2.0 0.0 308 KB

Convert text with ansi color codes to HTML

License: GNU Lesser General Public License v3.0

Makefile 1.50% Python 69.22% HTML 29.28%

ansi2html's Introduction

ansi2html

Author

Ralph Bean <[email protected]>

Contributor

Robin Schneider <[email protected]>

Convert text with ANSI color codes to HTML or to LaTeX.

Inspired by and developed off of the work of pixelbeat and blackjack.

Build Status

Branch Status
master Build Status - master branch
develop Build Status - develop branch

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:

$ sudo yum install python-ansi2html

Source: http://github.com/ralphbean/ansi2html/

pypi: http://pypi.python.org/pypi/ansi2html/

License

ansi2html is licensed LGPLv3+.

ansi2html's People

Contributors

ralphbean avatar hartwork avatar jenstimmerman avatar warpr avatar posativ avatar iksaif avatar sujanadiga avatar schettino72 avatar cbke avatar cfstras avatar szepeviktor avatar tbabej avatar dbravender avatar davidmalcolm avatar gberaudo avatar kaspar030 avatar nima avatar lqez avatar karjaneth avatar

Watchers

James Cloos avatar Paul Sherratt avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.