{"id":22411023,"url":"https://github.com/dynstat/colorty","last_synced_at":"2026-02-19T04:30:57.558Z","repository":{"id":246792590,"uuid":"823340933","full_name":"dynstat/colorty","owner":"dynstat","description":"pip package for colored terminal texts ","archived":false,"fork":false,"pushed_at":"2024-09-15T06:56:14.000Z","size":13,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-06T05:25:11.098Z","etag":null,"topics":["pip","python"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/colorty/","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/dynstat.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-07-02T21:18:55.000Z","updated_at":"2024-09-15T06:56:17.000Z","dependencies_parsed_at":null,"dependency_job_id":"d61451eb-4a58-4053-b3cb-3cf4dd8d0117","html_url":"https://github.com/dynstat/colorty","commit_stats":null,"previous_names":["dynstat/colorty"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dynstat/colorty","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dynstat%2Fcolorty","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dynstat%2Fcolorty/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dynstat%2Fcolorty/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dynstat%2Fcolorty/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dynstat","download_url":"https://codeload.github.com/dynstat/colorty/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dynstat%2Fcolorty/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29603036,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-19T04:01:40.476Z","status":"ssl_error","status_checked_at":"2026-02-19T04:01:12.960Z","response_time":117,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["pip","python"],"created_at":"2024-12-05T13:12:46.528Z","updated_at":"2026-02-19T04:30:57.539Z","avatar_url":"https://github.com/dynstat.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Colorty\n\nColorty is a Python library for handling colored text in various terminal environments including Windows CMD, PowerShell, and Unix-like terminals on Ubuntu and macOS.\n\n## Installation\n\nInstall Colorty using pip:\n\n\n\n```bash\npip install colorty\n```\n## Usage\n\nBasic example:\n\n```python\nfrom colorty import set_color, reset_color\nset_color('RED') # Set text color to red using color name\nprint(\"This text is red\")\nset_color('31') # Set text color to red using ANSI code\nprint(\"This text is still red\")\nset_color('GREEN') # Set text color to green using color name\nprint(\"This text is green\")\nset_color(32) # Set text color to green using ANSI code\nprint(\"This text is still green\")\nreset_color() # Reset text color to default\nprint(\"This text is default color\")\n```\n\nUsing the `Clt` class:\n\n```python\nfrom colorty import Clt\n\n# format partial string with color\nprint(f\"This is {Clt.RED}partial red{Clt.RESET} and {Clt.BLUE}partial blue{Clt.RESET} text.\")\n```\n\n## API Reference\n\n- `set_color(color)`: Sets the terminal text color.\n- `reset_color()`: Resets the terminal text color to default.\n- `Clt`: Class with predefined ANSI color codes.\n\n## License\n\nThis project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.\n\n\n**Acknowledgments**: inspired from the Colorama library. \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdynstat%2Fcolorty","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdynstat%2Fcolorty","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdynstat%2Fcolorty/lists"}