Book Image

Getting Started with Python and Raspberry Pi (Redirected from Learning Python By Developing Raspberry Pi Applications)

By : Dan Nixon
Book Image

Getting Started with Python and Raspberry Pi (Redirected from Learning Python By Developing Raspberry Pi Applications)

By: Dan Nixon

Overview of this book

Table of Contents (18 chapters)
Getting Started with Python and Raspberry Pi
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Chapter 9. Creating Command-line Interfaces

In this chapter, we will take a look at how we can use the argparse module to create easy to use command line interfaces (CLIs). CLIs can provide a much easier way to develop interface for your applications and are appropriate for situations where a graphical interface is not necessarily required.

To demonstrate the use of the module, we will build a simple unit conversion application that allows the user to input a value in a given unit and have the program convert it to a set of different units.