smartcliapp v1.0.0

Cross-platform library of tools for creating console applications

Based on the click library. Use a variety of out-of-the-box tools to create console applications.

Python Click CLI Cross-Platform PyPI Termux

smartcliapp — cross-platform library of tools for creating console applications based on the click library.

Supported platforms: Linux (all), Windows 7/8/10, Termux (Android).

Use Informer to display meta information. Use CliManager as a toolbox (Printer, InputMan, StatusMan, ActionMan, Launcher). Use Factory to create objects individually.

  • Title & Footer — display at startup and shutdown in the center of the console
  • Meta Information — name, description, copyright, site address
  • Browser Launch — open URL from console
  • Meta Storage — all app info in one place
  • User Action — instant response without confirmation (yes/no/exit)
  • Various Input — including hidden input for passwords
  • Status Output — Ok!/Error!
  • Display Methods — normal, centered with filling, pager
  • Top-Level Classes — Informer, ClickMan, Factory

ComponentDescription
InformerDisplay meta information (name, title, description, copyright, url, version)
CliManagerToolbox — Printer, InputMan, StatusMan, ActionMan, Launcher
FactoryCreate objects individually
PrinterVarious display methods (normal, centered, pager)
InputManVarious input methods including hidden input for passwords
StatusManOperation status output (Ok!/Error!)
ActionManUser action request (yes/no/exit) with instant response
LauncherLaunch default browser to specified URL

pip install smartcliapp

from smartcliapp import Informer, CliManager

class CliMan(Informer):
    tools = CliManager()
    name = 'App Name'
    title = 'App title'
    description = 'App Description'
    copyright = 'App copyright'
    url = 'app url'
    msg = ''
    version = '0.0.0'

CliManager provides:

  • Printer — display methods (normal, centered with filling, pager)
  • InputMan — various input methods including hidden input for passwords
  • StatusMan — operation status output (Ok!/Error!)
  • ActionMan — user action request (yes/no/exit) with instant response
  • Launcher — launch default browser to specified URL

Informer displays:

  • Name, Title, Description
  • Copyright, URL, Version
  • Title and footer at startup and shutdown

By using this software, you agree to the full disclaimer terms.

Software provided "AS IS" without warranty. You assume all risks.

Full legal disclaimer: See DISCLAIMER.md

License: BSD 3-Clause License