{"id":18298240,"url":"https://github.com/s3rgeym/terminal-markup","last_synced_at":"2025-04-09T09:16:29.767Z","repository":{"id":214361375,"uuid":"736243040","full_name":"s3rgeym/terminal-markup","owner":"s3rgeym","description":"Render Markup to Terminal.","archived":false,"fork":false,"pushed_at":"2024-01-04T10:12:29.000Z","size":66,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-15T16:03:32.080Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/s3rgeym.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-12-27T11:19:33.000Z","updated_at":"2024-01-03T19:42:15.000Z","dependencies_parsed_at":"2025-02-15T03:34:11.306Z","dependency_job_id":null,"html_url":"https://github.com/s3rgeym/terminal-markup","commit_stats":null,"previous_names":["s3rgeym/terml","s3rgeym/terminal-markup"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/s3rgeym%2Fterminal-markup","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/s3rgeym%2Fterminal-markup/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/s3rgeym%2Fterminal-markup/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/s3rgeym%2Fterminal-markup/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/s3rgeym","download_url":"https://codeload.github.com/s3rgeym/terminal-markup/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248008626,"owners_count":21032556,"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":[],"created_at":"2024-11-05T15:05:34.005Z","updated_at":"2025-04-09T09:16:29.748Z","avatar_url":"https://github.com/s3rgeym.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# terminal-markup\n\n[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/terminal-markup)]() [![PyPI - Version](https://img.shields.io/pypi/v/terminal-markup)]() [![Total Downloads](https://static.pepy.tech/badge/terminal-markup)]()\n\nRender Markup to Terminal.\n\nInspired by [tml](https://github.com/liamg/tml).\n\nPros:\n\n* Faster than alternatvies like `rich`.\n* Supports background colors and hex.\n* Null-dependency.\n\nInstall:\n\n```bash\npip install terminal-markup\npoetry add terminal-markup\n```\n\nAfter install you can use command `terminal-markup`.\n\n## Examples\n\n```python\nfrom terminal_markup import render\n\n# let's render bricks\nprint(render(\"[b][color=#f70000 background=yellow] WARNING [/color]:[/b] [purple]Life leads to [i blue underline]Death[/i].[/purple]\"))\n```\n\n![image](https://github.com/s3rgeym/terminal-markup/assets/12753171/b3681eff-dff3-4964-a6fe-0329a4829156)\n\n## Tags\n\n| Tag | Description |\n| --- | --- |\n| `b`, `bold` | Bold text |\n| `i`, `em` | Italic text |\n| `u` | Underline text |\n| `blink` | -- |\n| `dim` | Dimmed color |\n| `rev` | Reversed foreground and background colors |\n| `[color=\u003ccolor\u003e]`, `\u003ccolor name\u003e` | Set foreground color |\n\nNon-existent tags do not cause errors.\n\n## Common attributes\n\n| Attribute | Description |\n| -- | -- |\n| `\u003ccolor name\u003e`, `color=\u003ccolor\u003e` | Set foreground color |\n| `background=\u003ccolor\u003e` | Set background color |\n| `{bold\\|italic\\|underline\\|dim\\|reversed\\|blink}[={no\\|off\\|false\\|0\\|...}]` | Set style |\n\nUnknown attributes are ignored.\n\n## Colors\n\nColor names: black, maroon, green, olive, navy, purple, teal, silver, grey, red, lime, yellow, blue, fuchsia, aqua, white (first 16 colors from [here](https://ss64.com/bash/syntax-colors.html)). Also supported HEX-codes like `#87CEEB`.\n\n## Tags Escaping\n\n\u003e `\\[` - escaped `[`.\n\n## Case Insensetive\n\nTag names, attributes and color names are case insensetive.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fs3rgeym%2Fterminal-markup","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fs3rgeym%2Fterminal-markup","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fs3rgeym%2Fterminal-markup/lists"}