{"id":26568276,"url":"https://github.com/technige/pansi","last_synced_at":"2026-01-29T04:44:11.527Z","repository":{"id":57450605,"uuid":"276443846","full_name":"technige/pansi","owner":"technige","description":"Text mode rendering library","archived":false,"fork":false,"pushed_at":"2024-11-17T23:58:42.000Z","size":4855,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-20T19:47:00.043Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/technige.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":"2020-07-01T17:37:33.000Z","updated_at":"2024-11-17T23:58:46.000Z","dependencies_parsed_at":"2024-10-31T01:21:57.037Z","dependency_job_id":"1579e165-7d02-4fac-b698-a4619ebd6346","html_url":"https://github.com/technige/pansi","commit_stats":{"total_commits":21,"total_committers":3,"mean_commits":7.0,"dds":0.1428571428571429,"last_synced_commit":"8014f67f14372bb6d88ca522d40744fff575814a"},"previous_names":["nascanti/pansi","technige/pansi"],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/technige%2Fpansi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/technige%2Fpansi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/technige%2Fpansi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/technige%2Fpansi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/technige","download_url":"https://codeload.github.com/technige/pansi/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245013769,"owners_count":20547175,"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":[],"created_at":"2025-03-22T19:35:56.290Z","updated_at":"2026-01-29T04:44:11.487Z","avatar_url":"https://github.com/technige.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Pansi\n\nPansi is a text mode rendering library. It provides a clean and simple\ninterface for working with text and graphics in the terminal, using ANSI escape\nsequences for rendering. The library provides the following modules:\n\n- `pansi.text` -- text colouring and styling\n- `pansi.image` -- terminal-based image rendering\n- `pansi.screen` -- full screen layout handling\n\nMost modern terminals support ANSI rendering, but the exact feature sets\navailable do vary. Bear in mind that not every listed function might work in\nevery terminal, and check the documentation for your terminal software to make\nsure.\n\n\n## `pansi.text`\n\nThe `pansi.text` module provides a suite of functions for colouring and styling\nterminal text, using ANSI escape sequences. Functions are designed to align as\nclosely as possible to CSS rules and properties, for ease of use.\n\n### Colours\n\nLet's start with something simple. The following example will render the word\n\"world\" in green:\n\n\u003cpre style=\"color:silver;background-color:black\"\u003e\u003ccode\u003e\u0026gt;\u0026gt;\u0026gt; from pansi.text import green\n\u0026gt;\u0026gt;\u0026gt; print(f\"Hello, {green}world{~green}!\")\nHello, \u003cspan style=\"color:green\"\u003eworld\u003c/span\u003e!\n\u003c/code\u003e\u003c/pre\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftechnige%2Fpansi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftechnige%2Fpansi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftechnige%2Fpansi/lists"}