Python Tutorial - 25. Command line argument processing using argparse

Python Tutorial - 25. Command line argument processing using argparse

codebasics

8 лет назад

88,818 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

code valley
code valley - 04.08.2022 08:09

Sir thanks you very much,
I was stuck in the image orientation code of my company
As they have command argparse of angles

With ur help it would be very much difficult for me

Ответить
P'KTHERX'TON'
P'KTHERX'TON' - 19.07.2022 19:21

Butt numsz -- are never args! Hence; a statement - proves itt. Personal pronoun - not machin'd.
PY' -- Royalty of, some Nation? I'm prince! There's noway, he was taught -- any PY'. THON' - as this prince, sits on, his throne.

Ответить
M Jar
M Jar - 14.06.2022 01:39

Why did jump to the coding stuff right away before even defining what parsing and command-line argument really are!!! How on earth we could code something without understanding what it is!!!
Thanks though

Ответить
Thachanon Dk
Thachanon Dk - 19.05.2022 18:18

many thanks for make this video. very easy to understand.

Ответить
AKM Uddin
AKM Uddin - 06.02.2022 21:18

What was the need of background music? It's disturbing ..difficult to concentrate.

Ответить
Computer vision for Medical Images
Computer vision for Medical Images - 09.10.2021 02:13

Very neat and clear explanation!

Ответить
Mediumer
Mediumer - 27.09.2021 16:24

Can I pass a list of files? Say I want to pass multiple files in the command line. How to do that?

Ответить
Subham The Musical Guy
Subham The Musical Guy - 04.08.2021 14:38

Superb video. thanks

Ответить
Christer Santos
Christer Santos - 13.04.2021 17:26

This is very helpful. Keep it up.

Ответить
Vishwesh Bhat
Vishwesh Bhat - 13.04.2021 14:46

How do I combine two codes, if both the codes are command line interfaced using argparse and require different inputs for their usage?

Ответить
zohaib ramzan
zohaib ramzan - 18.02.2021 22:23

great

Ответить
Fact Hai
Fact Hai - 16.12.2020 08:07

please make in hindi

Ответить
Bob Bobsen
Bob Bobsen - 28.09.2020 19:25

Hi there. Am getting an error saying ArgumentParser() is not in the argparse module. Am running latest PyCharm, Python 3.7 on Mac. Has something changed?

Ответить
monart
monart - 25.08.2020 17:05

how would this work for jupyter notebooks? could I run a jupyter notebook and then have a saved version with all the outputs to explore if I want to in the future?:)

Ответить
đêđ Śęć
đêđ Śęć - 24.08.2020 19:34

I REALLY LEARNED ARGPARSE FROM THIS VIDEO 🙋‍♂️✅👍

Ответить
aninda m
aninda m - 14.06.2020 00:29

very nice
clearly understandable
am in learning phase
here's my question, why
result=None ; declared initially?
I didn't know the debugging implementation before
thank you for that as well

Ответить
قناة ازرعها - Plant it
قناة ازرعها - Plant it - 16.05.2020 02:14

I have error

Error : the following arguments are required:
How can solve that error ?

Ответить
Left Back
Left Back - 26.03.2020 21:05

argparse.ArgumentError: argument -h/--height: conflicting option string: -h

i defined a function for calculating volume.

my input parameters are radius and height and i defined them in the same way as number1 and number 2 has been defined in this tutorial, but i persistently received the above error.pls help

Ответить
Libo Huang
Libo Huang - 16.02.2020 18:29

thank you for your video, it is very useful. But I have one question: if the argument is not optional without "--" defined, how can I use the configuration --> Script parameters to do the debug. Look forward anyone can give me one hand. thanks

Ответить
Harsh Pandey
Harsh Pandey - 08.02.2020 16:29

Thanks a lot man!
It was really really helpful

Ответить
Huy Tung Practice
Huy Tung Practice - 10.11.2019 06:06

What editor do you use?

Ответить
Mario Chiadika
Mario Chiadika - 16.10.2019 21:44

Please does argsparse work on Jupyter notebook

Ответить
Sanu Kurien
Sanu Kurien - 29.08.2019 06:39

Love how you thought of everything. While watching this I was thinking, but how will I debug this using pycharm, and then at the very next moment, you mentioned it. You are a genius.

Ответить
yomajo
yomajo - 14.08.2019 15:40

Besides help, are there any more functionality benefits versus sys.argv[1] to accept the input? Seems to be WAY MORE straight forward to accept user input from cmd.

Ответить
Thiyagarajan
Thiyagarajan - 24.07.2019 09:28

came here after reading quite a few web pages. this is the best explanation, kudos!

Ответить
n00b Heck3r
n00b Heck3r - 04.07.2019 08:04

no switch-case for you today?

Ответить
Suresh Kumar N
Suresh Kumar N - 20.05.2019 13:24

What kind of Editor / Framework, you are using to work with python?

Ответить
Abhinayaa Raja
Abhinayaa Raja - 21.03.2019 09:19

how to set those script parameters using normal python IDLE

Ответить
BSYO
BSYO - 08.03.2019 02:47

how can i do the command prompt thing inside of the code

Ответить
Sanjay Krish
Sanjay Krish - 26.02.2019 12:08

Love you man.. awesome

Ответить
loveusoc
loveusoc - 21.02.2019 09:19

This is great!!! Thank you

Ответить
Ankush Kumar Gupta
Ankush Kumar Gupta - 07.01.2019 20:04

Sala background me lagta hai B-Grade movie ka Music Chala diya ho

Ответить
Raghavendra Adiga
Raghavendra Adiga - 24.12.2018 16:42

Python is easy language as you've told. But making it easy to learn, you did a fantastic job.

Ответить
H G
H G - 10.12.2018 09:28

your videos are great, but they tend to make people sleepy , try to put some "energy" in your delivery.

Ответить
Mohamed Hamam
Mohamed Hamam - 01.11.2018 22:31

Your Classes are the best I have ever watched. amazing way of explaining your points. I have Never seen anyone matching you. Many Many thanks for the amazing contents.

Ответить
Naresh Reddy
Naresh Reddy - 28.09.2018 09:23

what is the diff bw system.argv[ ] and argparse

Ответить
Edwin S
Edwin S - 17.09.2018 00:43

lose the annoying music next time please....

Ответить
Ես սիրում եմ Աստծուն
Ես սիրում եմ Աստծուն - 26.07.2018 12:08

OK. I know what is the use of __name__='__main__'
But I don't clearly understand why did you implement that method in this script at the beginning!!

Ответить
Brobama
Brobama - 15.07.2018 12:41

what is the use of this? why not take input in the program normally? I am new to python so please excuse my ignorance to the topic. Thanks

Ответить
Tonya Sims
Tonya Sims - 06.06.2018 04:21

You are an amazing teacher!

Ответить
Kaustubh Deshpande
Kaustubh Deshpande - 29.05.2018 12:03

Very helpful! Thank you! :)

Ответить
Birobrata Deb
Birobrata Deb - 11.05.2018 13:36

extremely useful

Ответить
Himanshu Kandwal
Himanshu Kandwal - 07.05.2018 07:35

Good vid dude

Ответить