{"id":16653407,"url":"https://github.com/sdispater/pastel","last_synced_at":"2025-05-08T20:55:40.024Z","repository":{"id":56825659,"uuid":"80675194","full_name":"sdispater/pastel","owner":"sdispater","description":"Bring colors to your terminal","archived":false,"fork":false,"pushed_at":"2020-09-16T19:21:31.000Z","size":143,"stargazers_count":51,"open_issues_count":4,"forks_count":10,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-12T01:41:37.684Z","etag":null,"topics":["cli","python"],"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/sdispater.png","metadata":{"files":{"readme":"README.rst","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":"2017-02-01T23:27:28.000Z","updated_at":"2023-07-10T17:17:39.000Z","dependencies_parsed_at":"2022-09-22T17:51:55.540Z","dependency_job_id":null,"html_url":"https://github.com/sdispater/pastel","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sdispater%2Fpastel","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sdispater%2Fpastel/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sdispater%2Fpastel/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sdispater%2Fpastel/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sdispater","download_url":"https://codeload.github.com/sdispater/pastel/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253149404,"owners_count":21861718,"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":["cli","python"],"created_at":"2024-10-12T09:44:19.329Z","updated_at":"2025-05-08T20:55:40.007Z","avatar_url":"https://github.com/sdispater.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"Pastel: Bring colors to your terminal\n#####################################\n\nPastel is a simple library to help you colorize strings in your terminal.\n\nIt comes bundled with predefined styles:\n\n* ``info``: green\n* ``comment``: yellow\n* ``question``: black on cyan\n* ``error``: white on red\n\n.. image:: https://raw.githubusercontent.com/sdispater/pastel/master/assets/screenshot.png\n\n\nFeatures\n========\n\n* Use predefined styles or add you own.\n* Disable colors all together by calling ``with_colors(False)``.\n* Automatically disables colors if the output is not a TTY.\n* Used in `cleo \u003chttps://github.com/sdispater/cleo\u003e`_.\n* Supports Python **2.7+**, **3.5+** and **PyPy**.\n\n\nUsage\n=====\n\n.. code-block:: python\n\n    \u003e\u003e\u003e import pastel\n    \u003e\u003e\u003e print(pastel.colorize('\u003cinfo\u003eInformation\u003c/info\u003e'))\n    'Information'  # Green string by default\n    \u003e\u003e\u003e print(pastel.colorize('\u003cfg=red;options=bold\u003eThis is bold red\u003c/\u003e'))\n    'This is bold red'\n\n\nInstallation\n============\n\n.. code-block::\n\n    pip install pastel\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsdispater%2Fpastel","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsdispater%2Fpastel","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsdispater%2Fpastel/lists"}