{"id":13496574,"url":"https://github.com/pycontribs/ansi2html","last_synced_at":"2025-05-14T05:00:23.983Z","repository":{"id":1030747,"uuid":"858970","full_name":"pycontribs/ansi2html","owner":"pycontribs","description":"Convert text with ansi color codes to HTML","archived":false,"fork":false,"pushed_at":"2025-05-05T16:53:41.000Z","size":392,"stargazers_count":404,"open_issues_count":26,"forks_count":78,"subscribers_count":9,"default_branch":"main","last_synced_at":"2025-05-05T18:01:43.045Z","etag":null,"topics":["pep-621"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pycontribs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"github":"ssbarnea"}},"created_at":"2010-08-24T12:24:26.000Z","updated_at":"2025-04-05T10:38:20.000Z","dependencies_parsed_at":"2024-01-29T10:09:48.266Z","dependency_job_id":"7aa0d25a-1019-4358-a2b7-bd82b559b978","html_url":"https://github.com/pycontribs/ansi2html","commit_stats":{"total_commits":393,"total_committers":40,"mean_commits":9.825,"dds":0.7073791348600509,"last_synced_commit":"6e5ed910c1eea0da5edd47a8630357789373b32c"},"previous_names":[],"tags_count":30,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pycontribs%2Fansi2html","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pycontribs%2Fansi2html/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pycontribs%2Fansi2html/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pycontribs%2Fansi2html/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pycontribs","download_url":"https://codeload.github.com/pycontribs/ansi2html/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254076329,"owners_count":22010596,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["pep-621"],"created_at":"2024-07-31T19:01:51.978Z","updated_at":"2025-05-14T05:00:23.907Z","avatar_url":"https://github.com/pycontribs.png","language":"Python","funding_links":["https://github.com/sponsors/ssbarnea"],"categories":["Python"],"sub_categories":[],"readme":"[![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 \u003e directories.html\n$ sudo tail /var/log/messages | ccze -A | ansi2html \u003e logs.html\n$ task rc._forcecolor:yes limit:0 burndown | ansi2html \u003e 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: \u003chttps://github.com/pycontribs/ansi2html/\u003e\n\npypi: \u003chttps://pypi.org/project/ansi2html/\u003e\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","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpycontribs%2Fansi2html","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpycontribs%2Fansi2html","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpycontribs%2Fansi2html/lists"}