Locked learning resources

Join us and get access to thousands of tutorials and a community of expert Pythonistas.

Unlock This Lesson

Locked learning resources

This lesson is for members only. Join us and get access to thousands of tutorials and a community of expert Pythonistas.

Unlock This Lesson

Building a Python Command-Line To-Do App With Typer (Summary)

Building user-friendly command-line interface (CLI) applications is a fundamental skill to have as a Python developer. In the Python ecosystem, you’ll find several tools for creating this kind of application. Libraries such as argparse, Click, and Typer are good examples of those tools in Python. Here, you built a CLI application to manage a list of to-dos using Python and Typer.

In this video course, you learned how to:

  • Build a to-do application with Python and Typer
  • Add commands, arguments, and options to your to-do application using Typer
  • Test your to-do application using Typer’s CliRunner and pytest in Python

You also practiced some additional skills, such as working with JSON files using Python’s json module and managing configuration files with Python’s configparser module. Now you’re ready to build command-line applications.

Download

Course Slides (.pdf)

7.5 MB
Download

Sample Code (.zip)

19.9 KB

00:00 Congratulations on completing this course, Building a Command-Line To-Do App with Python and Typer. Let’s have a recap of what you’ve learned throughout this course.

00:10 First, you understood how command-line applications work. You proceeded to creating one yourself, building a fully functional to-do application with Python and Typer.

00:21 You added commands, arguments, and options to your command-line application, then handled and processed JSON file as the database for your application, added and read configuration settings in your application with Python’s configparser.

00:38 Now that you’ve completed this course, here’s a list of other cool additional resources for you to deepen your knowledge that you’ve gained in this course, one of which is Real Python’s tutorial on Model-View Controller in Python Web Apps.

00:53 With this tutorial, you’ll have a deeper understanding of how the Model-View-Controller architecture, design, and implementation is carried out. Next, if you are feeling adventurous and want to explore another cool system, Terminal User Interfaces, also known as TUIs, then this Real Python course, Build a Contact Book App with Textual, is for you.

01:15 And finally, if you decide to package your project and publish for others to use, this tutorial, How to Publish an Open=Source Python Package to PyPI, is a great source.

01:25 And with that, you’ve come to the end of this course. It’s been a great journey. It’s time to go show your cool Python project to the world and continue to build other cool Python command-line applications with Typer. And until next time, keep learning.

Become a Member to join the conversation.