How to Make a CLI in Python

Published: 16 February 2023
on channel: PageKey
3,757
80

Want to use your Python program as its own executable? It's pretty easy to do - watch on!

If you're in a hurry, all of the code from this video can be found here: https://github.com/pagekeytech/educat...

PageKey Tech is a channel where we take back tech by building our own versions of the products and services we all use every single day.

How-Tos Playlist:    • How to Make a CLI in Python  

If you want to get involved in contributing, consider joining our Discord:
  / discord  

We can discuss what you want to work on and get you involved!

Timestamps:
0:00 Intro
0:13 Overview
0:40 Step 1: Add project skeleton
1:58 IMPORTANT: adding entry_points
2:54 Step 2: Add source code
3:20 Step 3: Make sure it works
4:01 Step 4: BONUS: Set up argparse
4:15 Writing sample lib code
5:00 Setting up parser
5:33 Adding subparser
6:14 Handling the args
7:11 Showing off the finished product
7:45 Wrap-up


On this page of the site you can watch the video online How to Make a CLI in Python with a duration of hours minute second in good quality, which was uploaded by the user PageKey 16 February 2023, share the link with friends and acquaintances, this video has already been watched 3,757 times on youtube and it was liked by 80 viewers. Enjoy your viewing!