Get real, active and permanent YouTube subscribers
Get Free YouTube Subscribers, Views and Likes

Build AWESOME CLIs With Click in Python

Follow
ArjanCodes

In this video, I'll guide you through creating a Command Line Interface (CLI) tool in Python using the Click package. We'll build a simple notetaking tool that can write, read, update, and delete notes. Stick around until the end to discover some hidden features Click offers right out of the box that many people don't know about.

GitHub Repository: https://git.arjan.codes/2024/python_cli

Get my FREE 7step guide to help you consistently design great software: https://arjancodes.com/designguide.

The Friday Loop by ArjanCodes Newsletter: https://thefridayloop.com

ArjanCodes Blog: https://www.arjancodes.com/blog

✍ Take a quiz on this topic: https://www.learntail.com/quiz/faoxyu

Courses:
The Software Designer Mindset: https://www.arjancodes.com/courses/tsdm
The Software Architect Mindset: https://www.arjancodes.com/courses/tsam
Next Level Python: Become a Python Expert: https://www.arjancodes.com/courses/nlp
The 30Day Design Challenge: https://www.arjancodes.com/courses/30ddc

If you enjoyed this content, give this video a like. If you want to watch more of my upcoming videos, consider subscribing to my channel!

Social channels:
Discord: https://discord.arjan.codes
X: https://x.com/arjancodes
LinkedIn:   / arjancodes  
Facebook:   / arjancodes  
Instagram:   / arjancodes  
♪ Tiktok:   / arjancodes  

Code reviewers:
Yoriz
Ryan Laursen
Dale Hagglund
Kit Hygh
Alexander Milden
Bean

Video edited by Mark Bacskai:   / bacskaimark  

GEAR & RECOMMENDED BOOKS: https://kit.co/arjancodes

Chapters:
0:00 Intro
0:31 Story time
2:45 Creating the project
4:00 Create the CLI
4:54 Commands
6:33 Arguments vs Options
7:58 Creating the command
10:40 Connecting to the Entry point
12:16 The design of click
14:19 Continuing the connection
16:46 Using click context
18:25 Adding config to our tool
20:26 Giving the option to create the config
22:59 Things you get for free with Click
24:12 Final Thoughts
24:52 Outro

#arjancodes #softwaredesign #python

DISCLAIMER The links in this description might be affiliate links. If you purchase a product or service through one of those links, I may receive a small commission. There is no additional charge to you. Thanks for supporting my channel so I can continue to provide you with free content each week!

posted by shiny399046