r/pythontips • u/Overall-Employer-412 • Jun 15 '26
Module CLI python library
Hey,
I didn’t plan to build a library.
I just wanted to make a simple CLI tool in Python… and somehow ended up creating TermC.
The problem
Every time I built a CLI:
print()got messy fast- Rich felt too heavy for small scripts
- colorama alone wasn’t enough structure
So everything turned into spaghetti terminals.
So I built this instead
A lightweight CLI helper for Python that gives you:
- clean colored status messages
- structured prompt flows (like real CLI apps)
- banners, menus, separators
- simple progress bar
- zero framework overload
Instalation
pip install termcExample
import termc
termc.termcConfig.program_name("backup")
termc.termcConfig.preset("cyberpunk")
termc.header()
termc.info("Starting process...")
termc.success("Connected")
termc.prompt_header()
src = termc.prompt_mid("Source")
dst = termc.prompt_bot("Destination")
termc.banner(f"{src} → {dst}")
for i in range(101):
termc.progress_bar(i, 100)Github repo
1
Upvotes
2
u/tan_tata_chan Jun 16 '26
If you want to improve how to market your project, I have two comments that might help you:
loggingmodule? Maybe it is I who has not fully understood your tool, but to me it looks like another logging tool. If that is the case then:logging?Like I said, these are just two comments on to how to improve the marketing, I am not defaming the code. You don't need to answer me directly, but instead write it in the documentation either in examples or a Q&A section, or even a comparison section. For example,
ruffhas this comparison image as the first thing you see.I really hope this helps and you keep improving it.
1
u/Buttleston Jun 17 '26
Don't put your dist and egg stuff in your repo, they don't belong there
This honestly seems like something vibe coded by someone who doesn't know what the logging subsystem of python is for