{"id":26607258,"url":"https://github.com/butterroach/tranci","last_synced_at":"2025-04-09T20:43:35.724Z","repository":{"id":282634778,"uuid":"949201489","full_name":"Butterroach/tranci","owner":"Butterroach","description":"Tranci: a no-dependencies, lightweight, easy-to-use ANSI library.","archived":false,"fork":false,"pushed_at":"2025-03-17T05:14:31.000Z","size":61,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-23T22:41:05.782Z","etag":null,"topics":["ansi","cursor","cursor-motion","cursor-move","cursor-movement","library","python","python-library","python3","python3-library","pythonic","terminal","terminal-color","terminal-style","text","text-color","text-style"],"latest_commit_sha":null,"homepage":"https://butterroach.github.io/tranci-website/","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/Butterroach.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":"2025-03-15T22:38:04.000Z","updated_at":"2025-03-18T20:29:43.000Z","dependencies_parsed_at":"2025-03-15T23:35:52.920Z","dependency_job_id":null,"html_url":"https://github.com/Butterroach/tranci","commit_stats":null,"previous_names":["butterroach/tranci"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Butterroach%2Ftranci","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Butterroach%2Ftranci/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Butterroach%2Ftranci/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Butterroach%2Ftranci/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Butterroach","download_url":"https://codeload.github.com/Butterroach/tranci/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248110552,"owners_count":21049508,"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":["ansi","cursor","cursor-motion","cursor-move","cursor-movement","library","python","python-library","python3","python3-library","pythonic","terminal","terminal-color","terminal-style","text","text-color","text-style"],"created_at":"2025-03-23T22:40:04.081Z","updated_at":"2025-04-09T20:43:35.701Z","avatar_url":"https://github.com/Butterroach.png","language":"Python","readme":"# tranci: puts you in a trance.\n\n\u003cimg src=\"screenshot.png\" alt=\"Screenshot of Tranci's __main__.py output.\"\u003e\n\n## What in the world is a \"tranci\"?\n\n`tranci` is a no-dependencies, lightweight, easy-to-use, Pythonic ANSI library. It officially supports Python 3.9-3.13. You can move the cursor around, do some colors. Idk, just general ANSI.\n\n## How do I use this?\n\nInstall the `tranci` package with `pip`. Run `python -m tranci` to confirm it works.\n\nExample code:\n\n```py\nimport tranci\n\nprint(tranci.Red(\"Red text\"))\nprint(tranci.BGRed(\"Red background\"))\nprint(tranci.RGB(164, 106, 120, \"RGB code\"))\nprint(tranci.HEX(\"#A44A44\", \"HEX code\"))\n\nweird_cyan_green_color_thing = tranci.HEX(0x3affad)\n\nprint(weird_cyan_green_color_thing(\"You can save them too\"))\n```\n\nYou can figure out everything else just by looking at your IDE's autocomplete! (or just look at the cool `tranci/__main__.py` source code)\n\n## Why would I use this over anything else\n\n-   Auto reset handling\n-   Actual nesting functionality\n-   IDE auto-complete won't cry seeing the code\n-   True color\n-   Zero dependencies\n\n## Ok but ~~[that one clone of a JS library that shall not be named]~~ exists\n\n-   It's a clone of a JS library. What do you think?\n-   `tranci` has everything ~~[that one clone of a JS library that shall not be named]~~ has except fallbacks.\n-   You don't need fallbacks/capabilities-detection. It just adds bloat.\n-   Even if the JS clone is slightly lighter, `tranci` isn't just colors and styles and \u003cfont color=\"red\"\u003e\u003cu\u003e**_~~oooo look at this bold italic striked underlined red text!!!~~_**\u003c/u\u003e\u003c/font\u003e. It also supports a bit more general ANSI, in a more Pythonic extendable syntax. You can add your own ANSI things to `tranci` with the class system. Plus the world won't end if your project is 51.82KiB larger than it could be.\n\nDownload tranci now! or something uhh what do those mobile game ads say at the end again\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbutterroach%2Ftranci","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbutterroach%2Ftranci","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbutterroach%2Ftranci/lists"}