Argparse Tutorial - Python 2023 (Creating Your First CLI)

Поділитися
Вставка
  • Опубліковано 27 сер 2024
  • Welcome to your first argparse tutorial! Here we will be exploring the basics and everything you need to know to get start with using argparse in Python to create some cool Command Line Interfaces (CLI).
    ▶ Become job-ready with Python:
    www.indently.io
    ▶ Follow me on Instagram:
    / indentlyreels

КОМЕНТАРІ • 21

  • @HitBoxMaster
    @HitBoxMaster Рік тому +3

    Pretty good primer. Detailed but without unnecessary flourish. Also, very easy to understand and a very good speaking rhythm and voice. Great mini-class!

  • @abdooowd
    @abdooowd Рік тому +2

    This guy is so underrated! His tutorials are awesome and useful! Great work dude 👍🏻

  • @vanmutt8644
    @vanmutt8644 Рік тому +2

    Think what is being referred to as positional argument are the options or flags. parser.add_argument('filename') # positional argument
    parser.add_argument('-c', '--count') # option that takes a value
    parser.add_argument('-v', '--verbose',
    action='store_true') # on/off flag

  • @codewithpranoy
    @codewithpranoy Рік тому +9

    Suggestions for part 2: create a command line interface with beautiful userinterface and generate boilerplate code.

  • @nordgaren2358
    @nordgaren2358 Рік тому

    argparse is one of my favorite arg parsing library in any language, including Go, Rust and C#.
    💯 Would recommend.

  • @zluka7951
    @zluka7951 Рік тому

    thank you for the video! waiting for the next one about argparse

  • @ottomarjo7395
    @ottomarjo7395 Рік тому

    Oh thank you! This video helped me a LOT

  • @kabakiAntony
    @kabakiAntony Рік тому

    This is just awesome, great work.

  • @grzegorzryznar5101
    @grzegorzryznar5101 Рік тому

    Really nice video! I like it!

  • @blevenzon
    @blevenzon Рік тому

    So useful and informative thank you so much

  • @kaanyucel6294
    @kaanyucel6294 Рік тому

    nice teaching

  • @philtoa334
    @philtoa334 Рік тому

    Good , thx.

  • @mcdolla7965
    @mcdolla7965 Рік тому

    gr8 sir

  • @yunoletmehaveaname
    @yunoletmehaveaname 6 місяців тому

    Is there a part 2?

  • @kadriaymen9201
    @kadriaymen9201 Рік тому

    It's good if you do simple libraries such as argparse , regex , ...even random

  • @murphygreen8484
    @murphygreen8484 Рік тому +1

    Early club!

  • @Kornackifs
    @Kornackifs Рік тому

    great

  • @mrQBS_
    @mrQBS_ Рік тому

    if I want to do some more than one operation on CLI and link it for example with bnb-chain system, how can I do it?

  • @sya0802
    @sya0802 Рік тому

    How To Add Multiple Commands? &
    How to Add Commands To Variable Path?