whiptail is a library that will let you present a variety of questions or display messages using dialog boxes from a Python script.
The simple-repository-server is designed to be used as a library, but also includes a convenient command line interface for running a simple repository service: If ...