libjam#
A Python library that makes it easier to create better CLIs and provides some missing pieces for file management.
Here is a quick overview of what each module/class does:
The Captain class provides a boilerplate-free way of creating CLIs.
The Secretary class is just another program configuration system.
The writer module makes it easy to format and style your terminal output.
The flashcard module has a few functions for getting user input in the terminal.
The drawer module provides some missing file-management pieces.
The Path class is an extension of
pathlib.Pathwith drawer’s functionality.
Installing#
libjam is available on PyPi and can be installed using pip:
pip install libjam
API Overview#
- Captain
- Secretary
- writer
print()println()eprint()eprintln()indent()to_columns()CSICommandhide_cursorshow_cursorhidden_cursor()hide_input()show_input()hidden_input()ClearSequenceclear_lineclear_line_from_cursorclear_line_before_cursorclear_pageclear_page_from_cursorclear_page_before_cursorclear_historyStatusBarProgressBarNavigationSequenceupdownleftrightprev_linenext_lineview_upview_downStyleresetbolddimitalicunderlineblinkinverthidestrikedefaultblackredgreenyellowbluepurplecyanwhiteon_defaulton_blackon_redon_greenon_yellowon_blueon_purpleon_cyanon_whitebright_blackbright_redbright_greenbright_yellowbright_bluebright_purplebright_cyanbright_whiteon_bright_blackon_bright_redon_bright_greenon_bright_yellowon_bright_blueon_bright_purpleon_bright_cyanon_bright_whitergb()on_rgb()
- flashcard
- drawer
- Path