{"id":16269909,"url":"https://github.com/noah-yoshida/prettycli","last_synced_at":"2025-10-02T20:31:16.911Z","repository":{"id":57454690,"uuid":"226160023","full_name":"noyoshi/prettycli","owner":"noyoshi","description":"🎨 command line output utils for Python to draw boxes, colors, etc","archived":false,"fork":false,"pushed_at":"2019-12-06T04:18:30.000Z","size":59,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-12T21:33:26.019Z","etag":null,"topics":["ascii","cli","colorization","colors","command-line","python3"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/noyoshi.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":"2019-12-05T17:59:48.000Z","updated_at":"2023-06-10T18:02:11.000Z","dependencies_parsed_at":"2022-09-04T18:22:18.142Z","dependency_job_id":null,"html_url":"https://github.com/noyoshi/prettycli","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/noyoshi%2Fprettycli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/noyoshi%2Fprettycli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/noyoshi%2Fprettycli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/noyoshi%2Fprettycli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/noyoshi","download_url":"https://codeload.github.com/noyoshi/prettycli/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":235039184,"owners_count":18926301,"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":["ascii","cli","colorization","colors","command-line","python3"],"created_at":"2024-10-10T18:09:13.807Z","updated_at":"2025-10-02T20:31:16.533Z","avatar_url":"https://github.com/noyoshi.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003e🎨 prettycli 🌟\u003c/h1\u003e\n\u003ch5 align=\"center\"\u003e\n\u003ci align=\"center\"\u003eDependency free pretty CLI printing in Python (colors, unicode boxes, etc). More to come!\u003c/i\u003e\u003c/h5\u003e\n\n### Installation\n`$ python3 -m pip install prettycli`\n\n```py\nfrom prettycli import red, blue, yellow, color\n\n# You can print a basic color by passing a string into the color object\nprint(red(\"this is red\"))\n\n# You can add other attributed to what you print by calling methods on the\n# color objects\nprint(red(\"this is red and bold\").bold())\n\n# You can set the background by passing in a color object to the bg method\nprint(red(\"this is red, with a blue background\").bg(blue))\n\n# We even support true colors! You can use the base object 'color' and modify\n# the foreground with the rgb method\nprint(color(\"This was made with true color rgb\").rgb(60, 100, 120))\n```\n\n### Color module demo\n![Demo Gif](docs/demo.gif)\n_Made with asciinema_\n\n_Ignore the bold thing it is a bug with asciinema_\n\n_Also ignore the old import name_\n\n### Box module demo\n\u003cimg align=\"center\" src=\"docs/box.gif\" width=\"600\" /\u003e\n_Made with asciinema_\n\nIf you want something that can be used in shell scripting, I have another repo: [noyoshi/bashcolors](https://github.com/noyoshi/bashcolors)\n\n#### TODO\n- [ ] Performance checks - this should be as lightweight as possible\n- [ ] Unit tests\n- [x] No more dynamic variable definitions, as that messes with linters\n- [ ] `box.py` demo + better abstractions\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnoah-yoshida%2Fprettycli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnoah-yoshida%2Fprettycli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnoah-yoshida%2Fprettycli/lists"}