{ "info": { "author": "David Garc\u00eda Garz\u00f3n", "author_email": "voki@canvoki.net", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Environment :: Console", "Intended Audience :: Developers", "License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 3", "Topic :: Software Development :: Libraries :: Python Modules", "Topic :: System :: Logging", "Topic :: Text Processing :: Filters", "Topic :: Text Processing :: Markup :: HTML" ], "description": "python-deansi: Turns coloured console output into the equivalent html\n=====================================================================\n\nFeatures\n--------\n\n- It can be used either as module or as a command line tool.\n- Supports most \u2018m\u2019 codes (colors and attributes).\n- The apperance can be customized using styles in a very convenient and\n powerful way.\n\n - ANSI attributes are mapped to stylable HTML classes\n (``ansi_yellow``, ``ansi_bright``...)\n - Text sequences with the same set of ANSI attributes are enclosed\n in a single ``span`` with those classes activated.\n - You can define styles for a class or for a certain combination of\n classes\n - You can define the style depending on the enclosing container so\n that different styles can coexist in a single document.\n\n- It has been test driven developed and back2back tested.\n\nUsage as Python module\n----------------------\n\n- ``deansi.styleSheet()``: returns the default stylesheet for the ANSI\n classes you can customize.\n- ``deansi.deansi(consoleText)``: returns the HTML conversion\n\nThe following example use them to build a simple console look of the\noutput:\n\n.. code:: python\n\n import deansi\n\n html_template = \"\"\"\\\n \n