Beautiful Terminal Styling in Python With Rich

  Рет қаралды 144,419

Patrick Loeber

Patrick Loeber

Күн бұрын

Пікірлер: 104
@patloeber
@patloeber 3 жыл бұрын
Do you agree that this library makes the output much more beautiful? :)
@DamnBoii123
@DamnBoii123 3 жыл бұрын
Ofc
@TheRealKitWalker
@TheRealKitWalker 3 жыл бұрын
Oh yes! 😎👍👏👏
@pandipatipavan3804
@pandipatipavan3804 3 жыл бұрын
Please share the code files or links in the description...! It's really Awesome.
@MohamedAlGohary
@MohamedAlGohary 3 жыл бұрын
I have two things to say: 1. This is a great video (thanks for the great content by the way). 2. in the "Progress Bar" part, it would be much prettier not to print anything and just add the `time.sleep() in the for loop. The result is a beautifully minimal progress bar without the extra lines. :) Cheers mate!
@suhaib789
@suhaib789 3 жыл бұрын
Yes of course
@wssok
@wssok 6 ай бұрын
This is how every python library should be introduced.
@m0r4ag
@m0r4ag 4 ай бұрын
The big libraries usually have a sort of “introduction” section or small snippets of code like this, It’s just that watching it In video is more fun than reading it
@marverickbin
@marverickbin 3 жыл бұрын
Excellent presentation and content. I use python for 3 years and I wasn't aware of this package. Ty
@BettingIsCool
@BettingIsCool 3 жыл бұрын
Thanx for this tutorial. The styled output looks awesome and the formatted traceback is much nicer than the built-in traceback. PyCharm users don't forget to enable “emulate terminal” in output console option in run/debug configuration to see styled output.
@stevehageman6785
@stevehageman6785 2 жыл бұрын
Wow that is one really cool module. Thanks for bringing this to my attention.
@stefanrankovic2514
@stefanrankovic2514 4 ай бұрын
Thank you so much bro. This truly helped to change my console look for the better.
@zrqx
@zrqx Жыл бұрын
Great Tutorial. Thanks for explaining it in an enjoyable way
@edgargiobanny
@edgargiobanny 3 жыл бұрын
Excellent video, I I am learning python even though I can only say that I know the most basic, but even so I feel that I need more to learn Python
@8koi139
@8koi139 3 жыл бұрын
Python is so much fun, take it easy tho!
@odebroqueville
@odebroqueville 2 жыл бұрын
Nice tour! Thanks.
@talhayousuf4599
@talhayousuf4599 3 жыл бұрын
This is fantastic....!!! Such colorful print statements. Definitely it's a must to use in projects. Thank you...
@patloeber
@patloeber 3 жыл бұрын
Glad you like it!
@Zdshh12
@Zdshh12 2 жыл бұрын
very easy to learn and super useful module.
@Todiros
@Todiros 3 жыл бұрын
If I want to do `for item in List`, can I do `for item in track(List, ...)` instead to achieve the same effect but with a nicer progress bar? EDIT: I tested it out, you can.
@patloeber
@patloeber 3 жыл бұрын
great!
@yuli3873
@yuli3873 3 жыл бұрын
Just discovered your channel, I love it.
@patloeber
@patloeber 3 жыл бұрын
thank you!
@amandaoliveira6944
@amandaoliveira6944 3 жыл бұрын
Very useful for CLI app, thanks!
@patloeber
@patloeber 3 жыл бұрын
yep it's pretty nice :)
@SanataniAryavrat
@SanataniAryavrat 3 жыл бұрын
Cool.... looking good.... thanks for sharing the tutorial on this package....
@helinity1743
@helinity1743 2 жыл бұрын
This is best for console applications
@jonramos7726
@jonramos7726 2 жыл бұрын
Very nice! Thank you!
@TNothingFree
@TNothingFree 3 жыл бұрын
Very neat library! Thanks
@patloeber
@patloeber 3 жыл бұрын
glad you like it!
@mintymintfresh
@mintymintfresh 3 жыл бұрын
Just awsome... Thanks alot for the video..
@xx_Ashura_xx
@xx_Ashura_xx 2 жыл бұрын
beautiful module thanks
@kevineldridge1225
@kevineldridge1225 3 жыл бұрын
Great tool! Thank you for sharing!
@patloeber
@patloeber 3 жыл бұрын
glad you like it!
@k.m.jiaulislamjibon1443
@k.m.jiaulislamjibon1443 3 жыл бұрын
awsome library... i will definitely use it in my project
@patloeber
@patloeber 3 жыл бұрын
Nice!
@clicksandbeeps61
@clicksandbeeps61 2 жыл бұрын
Fun fact: the newest update of pip uses this library, and it looks amazing
@Ahmed-zg1iv
@Ahmed-zg1iv Жыл бұрын
very good video seriously.
@nathank1294
@nathank1294 3 жыл бұрын
What plugin do you use for your ide?
@ChrisHalden007
@ChrisHalden007 3 жыл бұрын
Very useful indeed. Thanks
@pabloalonso9083
@pabloalonso9083 3 ай бұрын
Is it possible to generate an output html updating in realtime to see the running code directly in the browser?
@aaparky7039
@aaparky7039 Жыл бұрын
Great, thanks
@Aprendizaje_Autodacta_Digital
@Aprendizaje_Autodacta_Digital Жыл бұрын
Thank you !
@CreachterZ
@CreachterZ 9 ай бұрын
How does this work across other OSes? Will this work on our primary AIX servers? What termcaps?
@perceptron5983
@perceptron5983 3 жыл бұрын
Thanks for the tip.
@manbirjudge8415
@manbirjudge8415 3 жыл бұрын
Beautiful! 😍
@Michael-zd7kr
@Michael-zd7kr 3 жыл бұрын
am I dreaming? is this real? this is some game changing stuff!
@cristhian4513
@cristhian4513 3 жыл бұрын
Is beautiful :o
@chriskeo392
@chriskeo392 Жыл бұрын
How do you use new line in console?
@VincentFischer
@VincentFischer 3 жыл бұрын
I love rich (also textual, a TUI from the same dev that heavily makes use of rich). My only problem with this is it doesn't plays nice with terminal output thats not natively styled with rich. Any idea how we can show standard ansi colored terminal output (from another app) with rich as it is supposed to look like? when working with these strings, rich kills all color data and formatting :-/. I even went to the length to write my own pygments syntax highlighter that is supposed to show colored terminal output but it's so painful, unreliable and feels so unnecessary
@patloeber
@patloeber 3 жыл бұрын
hmm no idea. maybe you can open a question in the github repo
@NotAFoe
@NotAFoe 3 жыл бұрын
how to do this with inputs?
@MrBeatHindis
@MrBeatHindis 2 жыл бұрын
I need your Hep In progress Bar
@dineshbawage1297
@dineshbawage1297 3 жыл бұрын
Big fan of yours . Any videos on automation framework for testing plz
@patloeber
@patloeber 3 жыл бұрын
Thanks! not yet but maybe in the future
@shivamshandilya5059
@shivamshandilya5059 3 жыл бұрын
You got a sub Great channel
@patloeber
@patloeber 3 жыл бұрын
Yeah thanks :)
@john-r-edge
@john-r-edge 3 жыл бұрын
Does it work in Jupyter Lab?
@theQuantumPenguin
@theQuantumPenguin 3 жыл бұрын
What other terminal emulators does this work with ?
@bhaskaruprety230
@bhaskaruprety230 3 жыл бұрын
Can i create full screen app with this library?
@ananduthampi3060
@ananduthampi3060 3 жыл бұрын
Intresting
@Kenu7
@Kenu7 2 жыл бұрын
how it works on input?
@ellisdoesstuff
@ellisdoesstuff 2 жыл бұрын
hi i have a question, I'm making my own terminal and i've got some ascii text on the top and i wanted to make it green, but rich wont let me, it looks decent don't get me wrong but its highlighting the slashes purple and it's bugging me, any fixes or am i stuck with hints of purple
@cantedit9285
@cantedit9285 2 жыл бұрын
hi! can you show how to setup your terminal?
@tananuraj
@tananuraj 3 жыл бұрын
Hey man can you suggest how to print pandas data frames in styles over cmd ? I'm not using jupyter notebook. Would love the cmd option.
@microfx
@microfx 9 ай бұрын
did you find out?
@tananuraj
@tananuraj 9 ай бұрын
no
@fadhilsaheer8877
@fadhilsaheer8877 3 жыл бұрын
I will definitely use it for debugging [ its hard to find print("function called") in console 😁]
@patloeber
@patloeber 3 жыл бұрын
Nice 👍🏻
@ranelpadon8834
@ranelpadon8834 3 жыл бұрын
You might want to take a look also into `icecream`: ``` - It prints both expressions/variable names and their values. - It's 40% faster to type. - Data structures are pretty printed. - Output is syntax highlighted. - It optionally includes program context: filename, line number, and parent function. ``` github.com/gruns/icecream
@JoeEvansSound
@JoeEvansSound Жыл бұрын
Great video - thanks. Can you tell me please, am I right in thinking this DOES NOT format or give me invitation for INPUT from the user? How do I ask for input using Rich??? I have a horrible feeling that I can not do this! I feel that I need a terminal-user-interface :¬( thanks
@ricardorien
@ricardorien Жыл бұрын
NICE
@devjeetmandal1472
@devjeetmandal1472 Жыл бұрын
Best.
@sagar-tt4ub
@sagar-tt4ub 3 жыл бұрын
how does your mac's terminal has so many colors? I have been trying to do with my terminal, but all in vain. Help me with this please.
@patloeber
@patloeber 3 жыл бұрын
I customized it with iTerm2 and Oh My Zsh
@sagar-tt4ub
@sagar-tt4ub 3 жыл бұрын
@@patloeber thanks a lot
@wi8shad0w
@wi8shad0w 3 жыл бұрын
i feel i am indebted to u
@JohnSmith-kd6ip
@JohnSmith-kd6ip 7 ай бұрын
I have been looking for a way to make textmode programs in Python, since I messed around with Turbo Pascal in my youth. So I installed the 'rich' library on my Win10 PC. When I type "python -m rich", the colors are less rich (looks like only 13 different colors), the text formats (bold, italic, underline etc) are not showing, just plain basic text. Also the asian characters don't show.
@markoshivapavlovic4976
@markoshivapavlovic4976 3 жыл бұрын
nice
@cambridgebreaths3581
@cambridgebreaths3581 3 жыл бұрын
Can you use rich on G Colab. Thank you kindly
@minhphamhoang2894
@minhphamhoang2894 3 жыл бұрын
It is nice but it should be developed as plugin rather than package
@whoami4955
@whoami4955 3 жыл бұрын
where are you from?
@patloeber
@patloeber 3 жыл бұрын
Germany
@podunkis
@podunkis Жыл бұрын
Your English is quite good, so your pronunciation of "console" sticks out. When pronounced with the stress on the second syllable (conSOLE), it means "comfort (someone) at a time of grief." To refer to a terminal you should pronounce it with stress on the *first* syllable (CONsole). Mach's gut!
@kamalCode
@kamalCode 3 жыл бұрын
Sir, please python developer learning ROADMAP PATH PLZ for web and app data science, AI plz share pic
@LuvxJacqu4li8e
@LuvxJacqu4li8e 2 жыл бұрын
Nice but I don't think I'll need to learn another html
@tomtomtomtom691
@tomtomtomtom691 3 жыл бұрын
Hide that you can’t code; with colors!
@patloeber
@patloeber 3 жыл бұрын
haha yeah ;)
@rajeshs5722
@rajeshs5722 3 жыл бұрын
can you make a tutorial about pytest.🙄
@patloeber
@patloeber 3 жыл бұрын
Yes this is on my list
@rajeshs5722
@rajeshs5722 3 жыл бұрын
@@patloeber okay.
@kaveen_93
@kaveen_93 3 жыл бұрын
@@patloeber can you also make a tutorial on debugging using pycharm or VSC IDE? Danke!
@malcolmvanorder5453
@malcolmvanorder5453 2 жыл бұрын
Sounds like english isn't your first language. And it's bugging me when you say console as in the verb(emphasis on the second syllable) rather than console like the noun(emphasis on the first syllable).
@amanthakur4145
@amanthakur4145 3 жыл бұрын
This is better if u are building some kind of console application else it just waste of time just practice improving the logic no one cares about this in Industry.
15 Python Libraries You Should Know About
14:54
ArjanCodes
Рет қаралды 406 М.
11 Tips And Tricks To Write Better Python Code
11:00
Patrick Loeber
Рет қаралды 621 М.
I thought one thing and the truth is something else 😂
00:34
عائلة ابو رعد Abo Raad family
Рет қаралды 23 МЛН
How many people are in the changing room? #devil #lilith #funny #shorts
00:39
Transform Your Scripts With Bash Simple Curses
16:15
DistroTube
Рет қаралды 112 М.
5 Useful F-String Tricks In Python
10:02
Indently
Рет қаралды 335 М.
Python Rich - The BEST way to add Colors, Emojis, Tables and More...
12:09
25 nooby Python habits you need to ditch
9:12
mCoding
Рет қаралды 1,8 МЛН
Python Curses Tutorial #1 - Make GOOD Looking Terminal Apps!
15:37
Tech With Tim
Рет қаралды 202 М.
Improving Python Console Output With Rich
19:37
Real Python
Рет қаралды 10 М.
LAVROV's interview with Tucker CARLSON 😁 [Parody]
8:34
Юрий ВЕЛИКИЙ
Рет қаралды 371 М.
Python dataclasses will save you HOURS, also featuring attrs
8:50
6 Tips to write BETTER For Loops in Python
9:19
Patrick Loeber
Рет қаралды 250 М.
This Is Why Python Data Classes Are Awesome
22:19
ArjanCodes
Рет қаралды 818 М.
I thought one thing and the truth is something else 😂
00:34
عائلة ابو رعد Abo Raad family
Рет қаралды 23 МЛН