{"id":17876312,"url":"https://github.com/tehmaze/ansi","last_synced_at":"2025-05-07T18:09:20.694Z","repository":{"id":5707106,"uuid":"6917897","full_name":"tehmaze/ansi","owner":"tehmaze","description":"ANSI cursor movement and graphics in Python","archived":false,"fork":false,"pushed_at":"2024-01-22T00:58:53.000Z","size":64,"stargazers_count":51,"open_issues_count":0,"forks_count":13,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-05-07T18:08:10.149Z","etag":null,"topics":["ansi","color","colors","colour","colours","ecma-048","python","terminal"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/ansi/","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/tehmaze.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","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":"2012-11-29T08:53:43.000Z","updated_at":"2025-04-20T05:42:03.000Z","dependencies_parsed_at":"2024-01-21T22:56:21.721Z","dependency_job_id":"7a81fbde-62c8-41bb-a119-f0a74dce8b47","html_url":"https://github.com/tehmaze/ansi","commit_stats":{"total_commits":68,"total_committers":12,"mean_commits":5.666666666666667,"dds":0.6911764705882353,"last_synced_commit":"9074f3c8f2b722b699b7bed10e38631c97476ea3"},"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tehmaze%2Fansi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tehmaze%2Fansi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tehmaze%2Fansi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tehmaze%2Fansi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tehmaze","download_url":"https://codeload.github.com/tehmaze/ansi/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252931535,"owners_count":21827111,"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","color","colors","colour","colours","ecma-048","python","terminal"],"created_at":"2024-10-28T11:29:45.580Z","updated_at":"2025-05-07T18:09:20.588Z","avatar_url":"https://github.com/tehmaze.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"ANSI\n====\n\nVarious ANSI escape codes, used in moving the cursor in a text console or\nrendering coloured text.\n\n\nExample\n-------\n\nPrint something in bold yellow on a red background:\n\n    \u003e\u003e\u003e from ansi.colour import fg, bg\n    \u003e\u003e\u003e from ansi.colour.fx import reset\n    \u003e\u003e\u003e msg = (bg.red, fg.yellow, 'Hello world!', reset)\n    \u003e\u003e\u003e print(''.join(map(str, msg)))\n    ...\n\nIf you like syntactic sugar, you may also do:\n\n    \u003e\u003e\u003e from ansi.colour import fg, bg\n    \u003e\u003e\u003e print(bg.red(fg.yellow('Hello world!')))\n    ...\n\nAlso, 256 RGB colours are supported:\n\n    \u003e\u003e\u003e from ansi.colour.rgb import rgb256\n    \u003e\u003e\u003e from ansi.colour.fx import reset\n    \u003e\u003e\u003e msg = (rgb256(0xff, 0x80, 0x00), 'hello world', reset)\n    \u003e\u003e\u003e print(''.join(map(str, msg)))\n    ...\n\nIf you prefer to use American English instead:\n\n    \u003e\u003e\u003e from ansi.color import ...\n    \n\nReferences\n----------\n\nhttps://www.ecma-international.org/publications-and-standards/standards/ecma-48/\n\n\nRequirements\n------------\nAnsi requires python 3.6 and supports typing.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftehmaze%2Fansi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftehmaze%2Fansi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftehmaze%2Fansi/lists"}