TUI-Toolkit
A compact set of terminal-focused utilities: console helpers, text processing, list tools, logic evaluators, and timezone utilities backed by bundled JSON tzdata.
Designed as a library, not a framework. No global state, no magic, no TUI “engine”—just focused primitives.
Installation
pip install tuikit
Features
Console Utilities
Structured terminal output helpers:
- clearing screen
- seperating screen
- spacing
Text Tools
Simple but practical utilities:
- wrapping
- alignment
- tokenization helpers
List Tools
Operations on sequences:
- flattening
- grouping
- chunking
- transformations
Logic Tools
Small logic helpers:
- truth checks
- implication evaluation
- safe comparisons
Time & Zone Tools
Timezone-aware utilities using packaged JSON tzdata:
- Africa, America, Asia, Europe, Pacific, Australia
- zone alias resolution
- offset lookup
- conversions
- formating to fuzzy human-readable
Quick Start
- Console
from tuikit.console import clear
print("Hello World")
clear(sleep=2) # clears screen after 2 seconds
- Lists
from tuikit.listools import flatten
nested = [1, [2, 3, [4, 5, 6], [7], 8], [9]]
flat = flatten(nested)
```Text
from tuikit.textools import wrap
print(wrap("Long text here...", width=40))
- Logic
from tuikit.logictools import any_in
nested = [1, [2, 3, [4, 5, 6], [7], 8], [9]]
a_list = ["Hello", "World", "by Darki", 2, 5]
if any_in(a_list, eq=nested):
print("Hell yeah!")
- Time & Zones
from tuikit.zonetools import Timezone
from tuikit.timetools import timestamp
from datetime import datetime
zone = Timezone("Africa/Harare")
print(zone.offset)
now = datetime.now().isoformat()
print(timestamp(now))
Package Structure
tuikit/ astools.py console.py exceptions.py listools.py logictools.py textools.py timetools.py zonetools.py tzdata/ Africa.json America.json ...
Why This Exists
Most libraries either:
- force a full TUI framework,
- over-abstract simple tasks,
- or hide logic behind globals.
This toolkit does the opposite:
- explicit imports
- predictable functions
- small focused modules
- timezone data bundled locally
License
MIT. See LICENSE for more details.
Metadata
Release files for tuikit 1.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| tuikit-1.1.0.tar.gz | 26.1 kB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| tuikit-1.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 55.8 kB
Release files / tuikit-1.1.0.tar.gz
| Download URL | tuikit-1.1.0.tar.gz |
|---|---|
| Size | 26.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
67c112e9e2792cd16ab1615db0076861059861727cd00540790abcf2af2ba4f3
|
|
BLAKE2b-256 checksum How to use checksums |
538762de3e650f6fd0a04f4dc01d966bec510ffc5eb54dcbabee107a611ac82f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 5, 2026.
Transparency logRelease files / tuikit-1.1.0-py3-none-any.whl
| Download URL | tuikit-1.1.0-py3-none-any.whl |
|---|---|
| Size | 29.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0d24fc6a21a1a01f8dec25fb81d7cde9d229cb40d05af15d3d0041b696a285c9
|
|
BLAKE2b-256 checksum How to use checksums |
846e0637ac9b213e704d6f53806832daa0fa523bc65a8e83857065e9f6ef6927
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 5, 2026.
Transparency logSecurity for tuikit 1.1.0
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.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for tuikit-1.1.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 5, 2026.
Transparency logA 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.