Professional CLI Applications with Click

  Рет қаралды 58,488

NeuralNine

NeuralNine

Күн бұрын

In this video, we learn how to build professional CLI applications using click in Python.
◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾
📚 Programming Books & Merch 📚
🐍 The Python Bible Book: www.neuralnine...
💻 The Algorithm Bible Book: www.neuralnine...
👕 Programming Merch: www.neuralnine...
🌐 Social Media & Contact 🌐
📱 Website: www.neuralnine...
📷 Instagram: / neuralnine
🐦 Twitter: / neuralnine
🤵 LinkedIn: / neuralnine
📁 GitHub: github.com/Neu...
🎙 Discord: / discord
🎵 Outro Music From: www.bensound.com/

Пікірлер: 34
@Julie9009
@Julie9009 2 жыл бұрын
I’ve been using argparse for simple apps, and docopt for more complex cases. This is an interesting, and possibly simpler, alternative. Thank you
@tedgiann
@tedgiann Жыл бұрын
indeed, i totally agree
@verhaxity
@verhaxity 11 ай бұрын
Click is internally based on optparse instead of argparse. This is an implementation detail that a user does not have to be concerned with. Click is not based on argparse because it has some behaviors that make handling arbitrary command line interfaces hard
@admiralevan
@admiralevan Жыл бұрын
Beauty. I've been making my own application that does this as well as organize by projects and clients and wow this is going to speed things up considerably with the extra features like filtering.
@dohnot
@dohnot 2 жыл бұрын
Very cool package. Thanks for showing. You make an incredible job!
@Victor_Marius
@Victor_Marius 2 жыл бұрын
This module seems good. BTW, I see some bugs inside delete_todo: it reads and deletes only from the default text file. It would be a good thing for the text file path to be set globally(ish) through another (new) function which will be like a sign-in. Anyway you got a like!
@arturocdb
@arturocdb 2 жыл бұрын
Thank you so much…, that i was lookin for…
@user-gs5jd5uq9i
@user-gs5jd5uq9i Жыл бұрын
as always, TOP NOTCH!!!
@Oleksii_Haivoronskyi1301
@Oleksii_Haivoronskyi1301 2 жыл бұрын
This is what I was looking for. Thanks
@beronicous7086
@beronicous7086 Жыл бұрын
I never knew this was the library that famous python programs were made
@bhoot1702
@bhoot1702 Жыл бұрын
Easy and straight forward
@i_wear_skin
@i_wear_skin Жыл бұрын
\
@v01tech
@v01tech Жыл бұрын
Thanks for the ‘how to’, it’s great! @NeuralNine Do you remember which PyCharm theme you’ve been using for this video?
@UrsuIrinel
@UrsuIrinel Жыл бұрын
Why you don't test your functions after you create them?
@dzanful
@dzanful Жыл бұрын
I was playing around with Click and trying to rewrite a CLI app for which I originally used Argparse. Somehow I couldn't figure out how to define an option that takes one or more arguments, like 'nargs="+"' in Argparse. I asked on several platforms and got the same answer, it's not possible by default. I still can't believe that Click doesn't offer such a common feature. For example, filename expansions performed by the shell, such as 'dir/**/*', cannot be handled by Click.
@i_wear_skin
@i_wear_skin Жыл бұрын
Yeah!
@verhaxity
@verhaxity 11 ай бұрын
Click is internally based on optparse instead of argparse. This is an implementation detail that a user does not have to be concerned with. Click is not based on argparse because it has some behaviors that make handling arbitrary command line interfaces hard
@Catterjeeo
@Catterjeeo 11 ай бұрын
Bing Ai recommended you!
@ashokjayarathna5562
@ashokjayarathna5562 8 ай бұрын
❤❤🎉Love this video
@fvgoya
@fvgoya 2 жыл бұрын
But do we need always type the name of the python file? It is not possible to use the name of the function same we type commands like “rsync”, “mv”? Can’t we type only add_todo -n xxx ?
@voxelfusion9894
@voxelfusion9894 2 жыл бұрын
rsync, cat, grep etc. are all standalone programs, just like the python script is itself one. You'd need to create separate programs for each of those, so having multiple python files.
@hoox2795
@hoox2795 2 жыл бұрын
convert the file to exe and add system path,just entery add_todo -n xxx commands will be working.a simple way on windows.
@darielsurf
@darielsurf 2 жыл бұрын
Hey, why you switch from vim? Is it for python in particular? Just curious
@serychristianrenaud
@serychristianrenaud 2 жыл бұрын
Thank
@thisiscrispin
@thisiscrispin Жыл бұрын
Did you share the code somewhere?
@simonlauer9379
@simonlauer9379 6 ай бұрын
used click to add a new custom command to my last flask app
@BGOPC
@BGOPC 2 жыл бұрын
Can We Use It WIth Classes??
@tcgvsocg1458
@tcgvsocg1458 2 жыл бұрын
Ok interesting why using click instead of tkinter ? I dont understand why its good for?
@voxelfusion9894
@voxelfusion9894 2 жыл бұрын
tkinter is an old GUI library (Graphical User Interfaces). click helps you make a TUI (Terminal User Interface). A gui needs a graphical environment, the tui just needs a terminal window and is much, much easier to implement.
@BrebbBroobles
@BrebbBroobles 8 ай бұрын
@@voxelfusion9894Building on what you said, while terminal apps don’t look super pretty, they’re much easier to run on your computer than GUI apps like tkinter. Raw text is easier to render than a whole window. Terminal apps can come in handy when you have a little process or a function you want to quickly run from the command line without opening tons of other apps or making a dedicated file for it. A nice use-case I’ve stumbled across for it is quickly generating complicated text-based diagrams or tables to plug into code comments. Lots of JavaScript frameworks use terminal apps for some basic config stuff like choosing which language to use for another tool or something. They aren’t vitally important all the time, but they’re worth knowing how to use, because you never know when it can come in handy 🛠️
@markcuello5
@markcuello5 2 жыл бұрын
HELP
@ShahJahan_NNN
@ShahJahan_NNN 2 жыл бұрын
When my telethon Crash Course, Voice chat feature
@joepiscapo936
@joepiscapo936 6 ай бұрын
when copy of the code is not provided and it crashes :)
@brightaneva6282
@brightaneva6282 2 жыл бұрын
Bro x d python God
Are CLI Frameworks Worth it? Trying TYPER
11:23
John Watson Rooney
Рет қаралды 9 М.
Python Argparse Module - Create CLI and Run Scripts With Command Line Arguments
26:16
Fabio Musanni - Programming Channel
Рет қаралды 6 М.
Zombie Boy Saved My Life 💚
00:29
Alan Chikin Chow
Рет қаралды 35 МЛН
1ОШБ Да Вінчі навчання
00:14
AIRSOFT BALAN
Рет қаралды 5 МЛН
Oh No! My Doll Fell In The Dirt🤧💩
00:17
ToolTastic
Рет қаралды 13 МЛН
Modern Graphical User Interfaces in Python
11:12
NeuralNine
Рет қаралды 1,5 МЛН
7 (more) AWESOME Linux CLI/Terminal Apps
14:21
TechHut
Рет қаралды 112 М.
The BEST CLI Tool
9:50
ThePrimeTime
Рет қаралды 201 М.
Progress Bars in Python Terminal
11:54
NeuralNine
Рет қаралды 103 М.
Argparse Tutorial - Python  2023 (Creating Your First CLI)
18:59
RSA Private & Public Key Encryption in Python
12:42
NeuralNine
Рет қаралды 53 М.
Building a CLI application with Golang
12:31
cdruc
Рет қаралды 38 М.
Building beautiful console applications - Patrik Svensson
45:57
Requests Library in Python - Beginner Crash Course
20:32
NeuralNine
Рет қаралды 48 М.
I've been using Redis wrong this whole time...
20:53
Dreams of Code
Рет қаралды 357 М.