{"id":20007409,"url":"https://github.com/mystpi/tinted","last_synced_at":"2026-05-09T12:34:09.489Z","repository":{"id":57475702,"uuid":"426433917","full_name":"MystPi/tinted","owner":"MystPi","description":"Boring print output no more!","archived":false,"fork":false,"pushed_at":"2021-11-12T17:46:35.000Z","size":7,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-12T20:03:34.124Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/MystPi.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}},"created_at":"2021-11-10T00:42:25.000Z","updated_at":"2023-03-17T12:47:13.000Z","dependencies_parsed_at":"2022-09-07T13:51:34.840Z","dependency_job_id":null,"html_url":"https://github.com/MystPi/tinted","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MystPi%2Ftinted","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MystPi%2Ftinted/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MystPi%2Ftinted/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MystPi%2Ftinted/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MystPi","download_url":"https://codeload.github.com/MystPi/tinted/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241444196,"owners_count":19963760,"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-13T06:16:26.575Z","updated_at":"2026-05-09T12:34:09.359Z","avatar_url":"https://github.com/MystPi.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# tinted\n![PyPI - Downloads](https://img.shields.io/pypi/dm/tinted) ![PyPI](https://img.shields.io/pypi/v/tinted) ![PyPI - License](https://img.shields.io/pypi/l/tinted) ![Python - Version](https://img.shields.io/badge/python-3%2B-yellow)\n\nGive your print output the tint it deserves! Give colors, styles, and more to the console, all with a simple markup language.\n\n## Installation\n```bash\npip install tinted\n```\n\n## Usage\nFrom a Python script:\n```python\nfrom tinted import tint\n\nprint(tint('Hello, [bold]world![/]'))\n```\n\nFrom a shell:\n```bash\necho \"Hello, [bold]world![/]\" | tinted\n\n# OR\n\ntinted file.txt\n```\n\n## Basic syntax\n\nStrings can be styled easily with an HTML-like syntax.\n\n```\n[bold][blue]Tinted[/] is [underline]cool[/]![/]\n```\n\n`[...]` denotes a starting tag, where `...` is a tag name.\n\n`[/...]` indicates a closing tag. Tag names are not necessary, and are ignored if they are included.\n\n## Tags\n\nAll of the available tags are listed below.\n\n### Colors\n- black\n- red\n- green\n- yellow\n- blue\n- magenta\n- cyan\n- lightgray\n- darkgray\n- lightred\n- lightgreen\n- lightyellow\n- lightblue\n- lightmagenta\n- lightcyan\n- white\n\n### Background colors\nPrefix any of the colors above with `bg`. Eg. `bglightred`.\n\n### Styles\n- bold\n- dim\n- italic\n- underline\n- blink\n- reverse\n- hidden\n\n## Escaping tags\nTo escape a tag, simply include `[]` somewhere inside.\n\n`[[]blue]These tags will be shown[[]/]`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmystpi%2Ftinted","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmystpi%2Ftinted","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmystpi%2Ftinted/lists"}