Creating command line applications in Python
Priyal Trivedi (~priyal) |
Using the Click library in Python, the talk would focus on demonstrating the usage of the library to build command line applications.
Among the wide variety of packages and modules in Python that help build command line tools in different ways, one of the more comprehensive module among others like argparse and docopt, is 'Click' which can be used to build applications in command line.
Click, 'Command Line Interface Creation Kit', a tool written by Armin Ronacher. It's just beautiful to work with and create simple, yet powerful, command line tools.
During the talk, I shall cover the benefits of Click over other modules before diving into the illustration of the installation and the demo through example to show some of its main features.
Precisely , the talk will cover the following:
- An overview of various arguments parsing in docopt, argparse and click
- Documenting the CLI
- Usage of exit codes, IO/Error streams
- Compatible output
- Understanding Boolean flags
- Basics of using github, pypi and Linux distributions
- Testing of CLI application
- Beautifying the output forms
Basics of Python language
Priyal is working as a software developer at Analytics Vidhya. She has previously worked with Ideas lab, Indian institute of Science, Bangalore on various research projects. More details are available on https://priyaltrivedi.com/