Pitwi
Librairy for create user interface in terminal/console with XML, CSS and Python.
Aperçu
Only Python :
from pitwi import Root, Text
(
Root(width = 45, height = 8)
.add(Text('Puf', bg='white', fg='black'))
.add(Text('Paf'), row=2, column=2)
.run()
)
Python + XML/CSS :
<root width="45" height="8">
<style>
#pwik {
bg: white;
fg: black;
}
</style>
<text id="pwik">Puf</text>
<text row="2" column="2">Paf</text>
</root>
from pitwi import parser
parser.file('NAME_OF_YOUR_FILE.xml').run()
Weather
File explorer
Expression
Ramass'herbe
Documentation
Text :
The text is between an opening and closing tag. <tag>text</tag>
The space in the beginning and the end are ignored.
<tag> pantoufle </tag> == <tag>pantoufle</tag>
The character { and } is used to use Python code online. Is same as f-string.
<tag>{f"Pomme {{poire}} fraise"}</tag> == <tag>Pomme {poire} fraise</tag>
The characters <, > is depreciated because XML not supported in text. Use escape character to use it. <tag>Puik \<puf\> paf</tag>
Selection :
Press Tab to select next element and Ctrl+Tab to select previous element.
Colors :
<root>
<style>
object {
item: color;
}
</style>
</root>
<root>
<style>
.exemple {
color: white;
fg: blue;
bg: red;
border-color: yellow;
active-border-color: cyan;
}
</style>
</root>
Dark
- black
- red
- green
- yellow
- blue
- magenta
- cyan
- silver
Light
- gray
- pink
- lime
- banana
- marlin
- violet
- teal
- white
Metadata
Release files for pitwi 0.5.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pitwi-0.5.2-py3-none-any.whl | Python 3 | none | any | Details for pitwi-0.5.2-py3-none-any.whl |
Release files / pitwi-0.5.2-py3-none-any.whl
| Download URL | pitwi-0.5.2-py3-none-any.whl |
|---|---|
| Size | 21.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
74aabdc01a547c6fa530ec34d1d13f42637557dd0df7e2e3d1fd8e8dc5e94660
|
|
BLAKE2b-256 checksum How to use checksums |
4dee0a4506f81a4885cf7490e4861dee9083a3dc59347fb53e5ce29a13963b71
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.5.0 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.6.2
|
Security for pitwi 0.5.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.