{"id":15683817,"url":"https://github.com/4surix/pitwi","last_synced_at":"2025-07-18T20:33:23.304Z","repository":{"id":57453112,"uuid":"338166453","full_name":"4surix/pitwi","owner":"4surix","description":"Module to make app in terminal/console with user interface.","archived":false,"fork":false,"pushed_at":"2021-11-08T23:51:31.000Z","size":85,"stargazers_count":10,"open_issues_count":6,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-13T18:21:59.071Z","etag":null,"topics":["gui","interface","terminal"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/4surix.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-02-11T22:13:24.000Z","updated_at":"2023-06-17T14:49:21.000Z","dependencies_parsed_at":"2022-08-29T08:31:32.287Z","dependency_job_id":null,"html_url":"https://github.com/4surix/pitwi","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/4surix/pitwi","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/4surix%2Fpitwi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/4surix%2Fpitwi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/4surix%2Fpitwi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/4surix%2Fpitwi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/4surix","download_url":"https://codeload.github.com/4surix/pitwi/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/4surix%2Fpitwi/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265281039,"owners_count":23739859,"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":["gui","interface","terminal"],"created_at":"2024-10-03T17:08:50.765Z","updated_at":"2025-07-18T20:33:23.079Z","avatar_url":"https://github.com/4surix.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Pitwi\n\n[![PyPI](https://img.shields.io/pypi/v/pitwi)](https://pypi.org/project/pitwi/)\n[![GitHub issues](https://img.shields.io/github/issues/4surix/pitwi)](https://github.com/4surix/pitwi/issues)\n[![Download](https://img.shields.io/pypi/dm/pitwi)](https://pypi.org/project/pitwi/)\n![Version python](https://img.shields.io/pypi/pyversions/pitwi)\n\nLibrairy for create user interface in terminal/console with XML, CSS and Python.\n\n# Aperçu\n\n## Only Python :\n\n```python\nfrom pitwi import Root, Text\n\n(\n    Root(width = 45, height = 8)\n    .add(Text('Puf', bg='white', fg='black'))\n    .add(Text('Paf'), row=2, column=2)\n    .run()\n)\n```\n\n## Python + XML/CSS :\n\n```xml\n\u003croot width=\"45\" height=\"8\"\u003e\n    \u003cstyle\u003e\n        #pwik {\n            bg: white;\n            fg: black;\n        }\n    \u003c/style\u003e\n    \u003ctext id=\"pwik\"\u003ePuf\u003c/text\u003e\n    \u003ctext row=\"2\" column=\"2\"\u003ePaf\u003c/text\u003e\n\u003c/root\u003e\n```\n\n```python\nfrom pitwi import parser\n\nparser.file('NAME_OF_YOUR_FILE.xml').run()\n```\n\n## Weather\n\n![weather](https://cdn.discordapp.com/attachments/557310650569850881/817915701620506694/syyhLr5L76.gif)\n\n\u003e [weather.xml](https://github.com/4surix/pitwi/blob/main/exemples/weather.xml)\n\n## File explorer\n\n![file_explorer](https://cdn.discordapp.com/attachments/557310650569850881/817915760570793994/phVuxs5gRt.gif)\n\n\u003e [file_explorer.xml](https://github.com/4surix/pitwi/blob/main/exemples/file_explorer.xml)\n\n## Expression\n\n![expression](https://cdn.discordapp.com/attachments/557310650569850881/899586259016622120/1D8NQnNvoe.gif)\n\n\u003e [calcul.xml](https://github.com/4surix/pitwi/blob/main/exemples/calcul.xml)\n\n## Ramass'herbe\n\n![ramassherbe](https://cdn.discordapp.com/attachments/557310650569850881/899586377082105876/Y6hB1XZP5J.gif)\n\n\u003e [rammassherbe.xml](https://github.com/4surix/pitwi/blob/main/exemples/ramassherbe.xml)\n\n# Documentation\n\n## Text :\n\nThe text is between an opening and closing tag. `\u003ctag\u003etext\u003c/tag\u003e`  \n  \nThe space in the beginning and the end are ignored.  \n  \n`\u003ctag\u003e   pantoufle  \u003c/tag\u003e` == `\u003ctag\u003epantoufle\u003c/tag\u003e`  \n  \nThe character `{` and `}` is used to use Python code online. Is same as f-string.  \n  \n`\u003ctag\u003e{f\"Pomme {{poire}} fraise\"}\u003c/tag\u003e` == `\u003ctag\u003ePomme {poire} fraise\u003c/tag\u003e`  \n  \nThe characters `\u003c`, `\u003e` is depreciated because XML not supported in text. Use escape character to use it. `\u003ctag\u003ePuik \\\u003cpuf\\\u003e paf\u003c/tag\u003e`  \n\n## Selection :\n\nPress `Tab` to select next element and `Ctrl+Tab` to select previous element.  \n  \n## Colors :\n\n```xml\n\u003croot\u003e\n    \u003cstyle\u003e\n        object {\n            item: color;\n        }\n    \u003c/style\u003e\n\u003c/root\u003e\n```\n\n```xml\n\u003croot\u003e\n    \u003cstyle\u003e\n        .exemple {\n            color: white;\n            fg: blue;\n            bg: red;\n            border-color: yellow;\n            active-border-color: cyan;\n        }\n    \u003c/style\u003e\n\u003c/root\u003e\n```\n\n### Dark\n\n- black\n- red\n- green\n- yellow\n- blue\n- magenta\n- cyan\n- silver\n\n### Light\n\n- gray\n- pink\n- lime\n- banana\n- marlin\n- violet\n- teal\n- white","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F4surix%2Fpitwi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F4surix%2Fpitwi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F4surix%2Fpitwi/lists"}