Writing Awesome Command-Line Programs in Python

  Рет қаралды 128,318

EuroPython 2014

EuroPython 2014

Күн бұрын

Command-Line programs can have a lot to them - usually more than you think, yet often suffer from a lack of thought.
This is a tour through how to structure your code, tools in the standard library and some 3rd party libraries. Take your command-line programs to the next level!

Пікірлер: 9
@Diachron
@Diachron 7 жыл бұрын
Good talk! thanks for the insights. Note to the producer/editor for the future..please switch to slide view when there's code on the slide. Watching a wide field view of the stage when there's code on the slide is not helpful..just FYI!
@kopuz.co.uk.
@kopuz.co.uk. 8 жыл бұрын
good stuff!
@souravmandal7527
@souravmandal7527 5 жыл бұрын
how to make these apps globally accesible?
@engkamyabi
@engkamyabi 4 жыл бұрын
You can use pip (PyPA).
@oilpit7080
@oilpit7080 7 жыл бұрын
"hello!" im very new to coding maybe like week in watching non stop youtube videos may someone please tell me what a command line is and what a command line does thankyou in advance
@sporech9374
@sporech9374 7 жыл бұрын
The command line is a way of interacting with the operating systems. Programs use it all the time behind the scenes. All the GUI overlay on your operating system does is enter certain commands based on what you do, for example, when you click on the Chrome icon to launch Chrome, it's the equivalent of finding the chrome executable in your command line, and then explicitly executing the program. There's a good tutorial on how to navigate the command line here: www.computerhope.com/issues/chusedos.htm
@oilpit7080
@oilpit7080 7 жыл бұрын
Sporech thanks im getting use to this appreciate your reply
@a8lg6p
@a8lg6p 6 жыл бұрын
I'll assume you've figured it out by now since it's a year later, but the command line is the best. It's basically like texting with your computer, and then your computer does whatever you tell it to. :) It's a really worthwhile skill to learn. I got a book on React that was published around when you wrote this comment, it's already out of date... The code doesn't work as written because there have been breaking changes in Firebase and Webpack already. But people have been using cat, ls, mkdir etc when I was in diapers and probably still will after I'm dead. And you can even use it on Windows now... There's the Linux subsystem for Windows 10, also Cygwin, and PowerShell comes with built-in aliases for its commands to their Unix equivalents, so typing cd, ls, cp etc and even using normal forward slashes as a path separator like a sensible OS will do what you expect. Aliases are great. For anything I do more than once a week, I usually do it with about 2-5 characters followed by enter. To update everything on my system, for example, I just type in. (It does sudo apt update && sudo apt dist-upgrade.) To see all my Google tasks and calendar appointments and how many days are left until each happens, gt -o. (It's my own Python program.)
Argparse Tutorial - Python  2023 (Creating Your First CLI)
18:59
How Many Balloons Does It Take To Fly?
00:18
MrBeast
Рет қаралды 205 МЛН
НРАВИТСЯ ЭТОТ ФОРМАТ??
00:37
МЯТНАЯ ФАНТА
Рет қаралды 8 МЛН
Pleased the disabled person! #shorts
00:43
Dimon Markov
Рет қаралды 30 МЛН
The Go Language: What Makes it Different? - Jay McGavren
44:47
ChariotSolutions
Рет қаралды 62 М.
The Clean Architecture in Python
49:54
Next Day Video
Рет қаралды 109 М.
Reuven M. Lerner - Practical decorators - PyCon 2019
29:12
PyCon 2019
Рет қаралды 41 М.
Ned Batchelder: Getting Started Testing - PyCon 2014
42:44
PyCon 2014
Рет қаралды 57 М.
Building Command Line Applications with Click
18:18
Armin Ronacher
Рет қаралды 151 М.
A Competition for Unreadable Code?
12:33
LaurieWired
Рет қаралды 158 М.
Can I Run Youtube Entirely From My Terminal? (No Browser)
15:31
Sebastian Witowski - Writing faster Python
24:10
EuroPython Conference
Рет қаралды 100 М.
James Powell: Design Principles | PyData DC 2016
41:35
PyData
Рет қаралды 45 М.
Russell Keith-Magee - Keynote - PyCon 2019
1:06:52
PyCon 2019
Рет қаралды 18 М.
Копия iPhone с WildBerries
1:00
Wylsacom
Рет қаралды 8 МЛН
Опасность фирменной зарядки Apple
0:57
SuperCrastan
Рет қаралды 12 МЛН
iPhone socket cleaning #Fixit
0:30
Tamar DB (mt)
Рет қаралды 18 МЛН
Todos os modelos de smartphone
0:20
Spider Slack
Рет қаралды 65 МЛН
АЙФОН 20 С ФУНКЦИЕЙ ВИДЕНИЯ ОГНЯ
0:59
КиноХост
Рет қаралды 1,2 МЛН
Klavye İle Trafik Işığını Yönetmek #shorts
0:18
Osman Kabadayı
Рет қаралды 8 МЛН