City Locator Application in Python - CLI App

  Рет қаралды 1,596

Bek Brace

Bek Brace

Күн бұрын

Welcome to this Python tutorial! In this video, we'll guide you through creating a command-line interface (CLI) program in Python that can calculate the distance between two cities located in different countries. We'll make use of essential packages such as inquirer for user input, simple_chalk for colorful output, and geopy for fetching geographical coordinates and calculating distances.
Here's what we'll cover:
1- Installing necessary packages and setting up the project structure.
2- Using inquirer to gather user input for city and country names.
3- Utilizing geopy to obtain latitude and longitude coordinates for each city.
4- Calculating the distance between the two cities based on their coordinates.
5- Enhancing output with simple_chalk, displaying distances in both kilometers and miles.
By the end of this tutorial, you'll have a fully functional Python CLI program that can calculate distances between any two cities globally. It's a practical tool that can be handy for various purposes.
☕ If you found this tutorial helpful and wish to support my work, consider buying me a coffee:
👉 ko-fi.com/bekb...
Explore more of my coding tutorials:
🍎 Bus Schedule CLI with Node.js and Python [+ Sqlite3]:
• Code a bus schedule CL...
🍎 Node.js CLI Application to Calculate Sales Tax:
• Build US Sales Tax Cal...
🔔 Don't forget to subscribe and hit the notification bell to stay updated on more coding tutorials like this!
Join this channel to access exclusive perks:
👉 / @bekbrace
Thank you for watching, and let's dive into building this useful Python CLI program together! 🐍🌍📊

Пікірлер: 24
@lanab1559
@lanab1559 Жыл бұрын
Very easy to understand and clear tutoral, thank you Amir
@BekBrace
@BekBrace Жыл бұрын
Thank you for watching
@bc4198
@bc4198 Жыл бұрын
You have my attention! 🍿
@BekBrace
@BekBrace Жыл бұрын
Thank You!
@philtoa334
@philtoa334 Жыл бұрын
Nice.
@BekBrace
@BekBrace Жыл бұрын
Thanks
@svetlana9699
@svetlana9699 Жыл бұрын
Hello 👋 Thanks Bek!
@BekBrace
@BekBrace Жыл бұрын
Thank you for watching
@jaimeviloriogreen
@jaimeviloriogreen Жыл бұрын
Great tutorial Bek!
@BekBrace
@BekBrace Жыл бұрын
Thank you very much!
@leowelly9846
@leowelly9846 Жыл бұрын
I just started learning python programming language and this is a really beginner friendly tutorial that I can follow along with. Thank you sir. Btw, what is the name of the extention you used to customized your terminal view in vscode? Thank you once again
@BekBrace
@BekBrace Жыл бұрын
Thank you my friend. This is exactly geared towards beginner to intermediate levels. You will find more tutorials [last 4] in Node and Python. Concerning my terminal, there is a tutorial on the channel on how to customize your powershell terminal, you'll find it easily.
@leowelly9846
@leowelly9846 Жыл бұрын
@@BekBrace The tutorial is for windows 11. I use windows 10, is there any chance to get it working on windows 10? thank for helping out
@BekBrace
@BekBrace Жыл бұрын
@@leowelly9846 There's no difference. Did you get any errors somewhere?
@leowelly9846
@leowelly9846 Жыл бұрын
@@BekBrace I have got it working. thank you sir
@thekaliexpert
@thekaliexpert Жыл бұрын
Brilliant, man
@BekBrace
@BekBrace Жыл бұрын
Thank you my friend
@431BlackHole
@431BlackHole Жыл бұрын
cool
@BekBrace
@BekBrace Жыл бұрын
Thank you my friend
@MPAXEL
@MPAXEL Жыл бұрын
waiting
@BekBrace
@BekBrace Жыл бұрын
Hope you enjoyed it
@mohamed_rida_b1304
@mohamed_rida_b1304 Жыл бұрын
alexandaria in usa 🧐🧐 how ?!
@BekBrace
@BekBrace Жыл бұрын
There are 31 cities called Alexandria in 12 different countries around the world
@mohamed_rida_b1304
@mohamed_rida_b1304 Жыл бұрын
@@BekBrace nice 👌🥇thank
Code a bus schedule CLI with Node.js and Python [ + Sqlite3 ]
26:24
Are CLI Frameworks Worth it? Trying TYPER
11:23
John Watson Rooney
Рет қаралды 9 М.
Cute
00:16
Oyuncak Avı
Рет қаралды 12 МЛН
отомстил?
00:56
История одного вокалиста
Рет қаралды 7 МЛН
小丑在游泳池做什么#short #angel #clown
00:13
Super Beauty team
Рет қаралды 43 МЛН
Why all world maps are wrong
6:00
Vox
Рет қаралды 22 МЛН
Python Click Master Class
19:25
Jasper Zanjani
Рет қаралды 23 М.
Rust for Web Assembly | Setup + Tutorial Guide
8:14
cudidotdev
Рет қаралды 1,6 М.
Want to make a video chat app? Watch this video for WebRTC!
1:22:35
Good Morning Developers
Рет қаралды 35 М.
Bed Bugs- What You've Been Told is Totally False
23:47
Mark Rober
Рет қаралды 41 МЛН
Vanessa Carlton - A Thousand Miles
4:27
Vanessa Carlton
Рет қаралды 409 МЛН
I run untested, viewer-submitted code on my 500-LED christmas tree.
45:17