How To Use File and Standard Input CLI Arguments with Python Click Package

preview_player
Показать описание
In this short "How To" video I demonstrate implementing a Python based Command Line Interface (CLI) application using the Click package to consume text input from both files and standard input streams. In demonstrating how to approach this challenge I create a word frequency CLI program named wf which counts the frequency of words in a given input source.

For those interested in learning more about the awesome Click package please consider taking my course Building Python CLI Apps with Click.

Рекомендации по теме