Skip to Main Content
Python Command Line Tools
book

Python Command Line Tools

by Alfredo Deza, Noah Gift
May 2020
Intermediate to advanced content levelIntermediate to advanced
117 pages
1h 57m
English
Pragmatic AI Labs
Content preview from Python Command Line Tools

Chapter 1: Getting Started with Click

Alfredo Deza

Building command-line tools is fun. For me, though, and for the longest time, it meant struggling with the different types of libraries Python had to offer. It all began with optparse, which is deprecated since Python 2.7, and it is unfortunately still in the standard library after all these years. It was replaced with argparse which, as you will see soon, it is still complicated to deal with. It is crucial to understand what Python has to offer to grasp why the alternative (the Click framework) is better.

Click is a project created by Armin Ronacher. If you haven’t heard of him before, you probably have heard about projects he created or co-authored:

- Pygments: Syntax highlighter- Jinja ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Python CI/CD for the Command-Line

Python CI/CD for the Command-Line

Alfredo Deza, Noah Gift
Intuitive Python

Intuitive Python

David Muller
Learning Python Networking - Second Edition

Learning Python Networking - Second Edition

José Manuel Ortega, Dr. M. O. Faruque Sarker, Sam Washington

Publisher Resources

ISBN: 61619PAIMLPurchase LinkOtherOtherOther