How to Make a CLI in Python

Pubblicato il: 16 febbraio 2023
sul canale di: 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


In questa pagina del sito puoi guardare il video online How to Make a CLI in Python della durata di ore minuti seconda in buona qualità , che l'utente ha caricato PageKey 16 febbraio 2023, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 3,757 volte e gli è piaciuto 80 spettatori. Buona visione!