Name | ansi2html JSON |
Version |
1.9.2
JSON |
| download |
home_page | None |
Summary | Convert text with ANSI color codes to HTML or to LaTeX |
upload_time | 2024-06-22 17:33:23 |
maintainer | None |
docs_url | None |
author | None |
requires_python | >=3.7 |
license | LGPLv3+ |
keywords |
ansi
html
color
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
|
[![Build Status - main branch](https://github.com/pycontribs/ansi2html/workflows/tox/badge.svg?branch=main)](https://github.com/pycontribs/ansi2html/actions?query=workflow%3Atox+branch%3Amain)
# ansi2html
Convert text with ANSI color codes to HTML or to LaTeX.
Inspired by and developed off of the work of
[pixelbeat](https://www.pixelbeat.org/docs/terminal_colours/) and
[blackjack](https://web.archive.org/web/20100911103911/http://www.koders.com/python/fid5D57DD37184B558819D0EE22FCFD67F53078B2A3.aspx).
[Read the docs](https://ansi2html.readthedocs.io/) for more
informations.
## Example - Python API
```python
from ansi2html import Ansi2HTMLConverter
conv = Ansi2HTMLConverter()
ansi = "".join(sys.stdin.readlines())
html = conv.convert(ansi)
```
## Example - Shell Usage
```shell
$ 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:
```shell
$ ansi2html --help
```
## Get this project:
```shell
$ pip3 install ansi2html
```
Source: <https://github.com/pycontribs/ansi2html/>
pypi: <https://pypi.org/project/ansi2html/>
## License
`ansi2html` is licensed LGPLv3+.
# Credits
- Author: [Ralph Bean](mailto:rbean@redhat.com)
- Contributor: [Robin Schneider](mailto:ypid23@aol.de)
Raw data
{
"_id": null,
"home_page": null,
"name": "ansi2html",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.7",
"maintainer_email": "Ralph Bean <rbean@redhat.com>",
"keywords": "ansi, html, color",
"author": null,
"author_email": "Ralph Bean <rbean@redhat.com>",
"download_url": "https://files.pythonhosted.org/packages/4b/d5/e3546dcd5e4a9566f4ed8708df5853e83ca627461a5b048a861c6f8e7a26/ansi2html-1.9.2.tar.gz",
"platform": null,
"description": "[![Build Status - main branch](https://github.com/pycontribs/ansi2html/workflows/tox/badge.svg?branch=main)](https://github.com/pycontribs/ansi2html/actions?query=workflow%3Atox+branch%3Amain)\n\n# ansi2html\n\nConvert text with ANSI color codes to HTML or to LaTeX.\n\nInspired by and developed off of the work of\n[pixelbeat](https://www.pixelbeat.org/docs/terminal_colours/) and\n[blackjack](https://web.archive.org/web/20100911103911/http://www.koders.com/python/fid5D57DD37184B558819D0EE22FCFD67F53078B2A3.aspx).\n\n[Read the docs](https://ansi2html.readthedocs.io/) for more\ninformations.\n\n## Example - Python API\n\n```python\nfrom ansi2html import Ansi2HTMLConverter\nconv = Ansi2HTMLConverter()\nansi = \"\".join(sys.stdin.readlines())\nhtml = conv.convert(ansi)\n```\n\n## Example - Shell Usage\n\n```shell\n$ ls --color=always | ansi2html > directories.html\n$ sudo tail /var/log/messages | ccze -A | ansi2html > logs.html\n$ task rc._forcecolor:yes limit:0 burndown | ansi2html > burndown.html\n```\n\nSee the list of full options with:\n\n```shell\n$ ansi2html --help\n```\n\n## Get this project:\n\n```shell\n$ pip3 install ansi2html\n```\n\nSource: <https://github.com/pycontribs/ansi2html/>\n\npypi: <https://pypi.org/project/ansi2html/>\n\n## License\n\n`ansi2html` is licensed LGPLv3+.\n\n# Credits\n\n- Author: [Ralph Bean](mailto:rbean@redhat.com)\n- Contributor: [Robin Schneider](mailto:ypid23@aol.de)\n",
"bugtrack_url": null,
"license": "LGPLv3+",
"summary": "Convert text with ANSI color codes to HTML or to LaTeX",
"version": "1.9.2",
"project_urls": {
"changelog": "https://github.com/pycontribs/ansi2html/releases",
"documentation": "https://ansi2html.readthedocs.io/",
"homepage": "https://github.com/pycontribs/ansi2html",
"repository": "https://github.com/pycontribs/ansi2html"
},
"split_keywords": [
"ansi",
" html",
" color"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "bd71aee71b836e9ee2741d5694b80d74bfc7c8cd5dbdf7a9f3035fcf80d792b1",
"md5": "c149d0dce53fdf12d00a9e871c0d06c0",
"sha256": "dccb75aa95fb018e5d299be2b45f802952377abfdce0504c17a6ee6ef0a420c5"
},
"downloads": -1,
"filename": "ansi2html-1.9.2-py3-none-any.whl",
"has_sig": false,
"md5_digest": "c149d0dce53fdf12d00a9e871c0d06c0",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.7",
"size": 17614,
"upload_time": "2024-06-22T17:33:21",
"upload_time_iso_8601": "2024-06-22T17:33:21.852644Z",
"url": "https://files.pythonhosted.org/packages/bd/71/aee71b836e9ee2741d5694b80d74bfc7c8cd5dbdf7a9f3035fcf80d792b1/ansi2html-1.9.2-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "4bd5e3546dcd5e4a9566f4ed8708df5853e83ca627461a5b048a861c6f8e7a26",
"md5": "290d3f06824b6a1ea798c4fa084a2fb6",
"sha256": "3453bf87535d37b827b05245faaa756dbab4ec3d69925e352b6319c3c955c0a5"
},
"downloads": -1,
"filename": "ansi2html-1.9.2.tar.gz",
"has_sig": false,
"md5_digest": "290d3f06824b6a1ea798c4fa084a2fb6",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.7",
"size": 44300,
"upload_time": "2024-06-22T17:33:23",
"upload_time_iso_8601": "2024-06-22T17:33:23.964708Z",
"url": "https://files.pythonhosted.org/packages/4b/d5/e3546dcd5e4a9566f4ed8708df5853e83ca627461a5b048a861c6f8e7a26/ansi2html-1.9.2.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-06-22 17:33:23",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "pycontribs",
"github_project": "ansi2html",
"travis_ci": false,
"coveralls": true,
"github_actions": true,
"tox": true,
"lcname": "ansi2html"
}