Beautiful Terminal Styling in Python With Rich

Поділитися
Вставка
  • Опубліковано 5 жов 2024

КОМЕНТАРІ • 104

  • @wssok
    @wssok 3 місяці тому +6

    This is how every python library should be introduced.

    • @m0r4ag
      @m0r4ag Місяць тому

      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

  • @patloeber
    @patloeber  3 роки тому +100

    Do you agree that this library makes the output much more beautiful? :)

    • @DamnBoii123
      @DamnBoii123 3 роки тому +3

      Ofc

    • @TheRealKitWalker
      @TheRealKitWalker 3 роки тому +3

      Oh yes! 😎👍👏👏

    • @pandipatipavan3804
      @pandipatipavan3804 3 роки тому +1

      Please share the code files or links in the description...! It's really Awesome.

    • @MohamedAlGohary
      @MohamedAlGohary 2 роки тому

      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 2 роки тому

      Yes of course

  • @marverickbin
    @marverickbin 2 роки тому +8

    Excellent presentation and content.
    I use python for 3 years and I wasn't aware of this package. Ty

  • @BettingIsCool
    @BettingIsCool 3 роки тому +23

    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 роки тому +6

    Wow that is one really cool module. Thanks for bringing this to my attention.

  • @stefanrankovic2514
    @stefanrankovic2514 2 місяці тому

    Thank you so much bro. This truly helped to change my console look for the better.

  • @zrqx
    @zrqx Рік тому +1

    Great Tutorial. Thanks for explaining it in an enjoyable way

  • @talhayousuf4599
    @talhayousuf4599 3 роки тому +7

    This is fantastic....!!! Such colorful print statements. Definitely it's a must to use in projects. Thank you...

  • @edgargiobanny
    @edgargiobanny 2 роки тому +2

    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 2 роки тому +1

      Python is so much fun, take it easy tho!

  • @imerla1316
    @imerla1316 2 роки тому +1

    very easy to learn and super useful module.

  • @odebroqueville
    @odebroqueville 2 роки тому

    Nice tour! Thanks.

  • @helinity1743
    @helinity1743 2 роки тому

    This is best for console applications

  • @SanataniAryavrat
    @SanataniAryavrat 3 роки тому +1

    Cool.... looking good.... thanks for sharing the tutorial on this package....

  • @amandaoliveira6944
    @amandaoliveira6944 2 роки тому

    Very useful for CLI app, thanks!

    • @patloeber
      @patloeber  2 роки тому

      yep it's pretty nice :)

  • @Todiros
    @Todiros 3 роки тому +8

    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.

  • @yuli3873
    @yuli3873 3 роки тому

    Just discovered your channel, I love it.

  • @xx_Ashura_xx
    @xx_Ashura_xx 2 роки тому

    beautiful module thanks

  • @mintymintfresh
    @mintymintfresh 2 роки тому

    Just awsome... Thanks alot for the video..

  • @k.m.jiaulislamjibon1443
    @k.m.jiaulislamjibon1443 3 роки тому

    awsome library... i will definitely use it in my project

  • @Aprendizaje_Autodacta_Digital

    Thank you !

  • @clicksandbeeps61
    @clicksandbeeps61 2 роки тому

    Fun fact: the newest update of pip uses this library, and it looks amazing

  • @jonramos7726
    @jonramos7726 2 роки тому

    Very nice! Thank you!

  • @ChrisHalden007
    @ChrisHalden007 2 роки тому

    Very useful indeed. Thanks

  • @kevineldridge1225
    @kevineldridge1225 2 роки тому

    Great tool! Thank you for sharing!

  • @aaparky7039
    @aaparky7039 9 місяців тому

    Great, thanks

  • @perceptron5983
    @perceptron5983 3 роки тому

    Thanks for the tip.

  • @TNothingFree
    @TNothingFree 2 роки тому

    Very neat library! Thanks

  • @Ahmed-zg1iv
    @Ahmed-zg1iv Рік тому

    very good video seriously.

  • @cristhian4513
    @cristhian4513 3 роки тому +2

    Is beautiful :o

  • @Michael-zd7kr
    @Michael-zd7kr 2 роки тому

    am I dreaming? is this real? this is some game changing stuff!

  • @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

  • @ananduthampi3060
    @ananduthampi3060 3 роки тому +1

    Intresting

  • @VincentFischer
    @VincentFischer 3 роки тому +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

  • @fadhilsaheer8877
    @fadhilsaheer8877 3 роки тому +1

    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

  • @MrBeatHindis
    @MrBeatHindis 2 роки тому

    I need your Hep In progress Bar

  • @pabloalonso9083
    @pabloalonso9083 27 днів тому

    Is it possible to generate an output html updating in realtime to see the running code directly in the browser?

  • @CreachterZ
    @CreachterZ 7 місяців тому

    How does this work across other OSes? Will this work on our primary AIX servers? What termcaps?

  • @manbirjudge8415
    @manbirjudge8415 3 роки тому

    Beautiful! 😍

  • @nathank1294
    @nathank1294 2 роки тому +1

    What plugin do you use for your ide?

  • @ricardorien
    @ricardorien Рік тому

    NICE

  • @devjeetmandal1472
    @devjeetmandal1472 Рік тому

    Best.

  • @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

  • @cantedit9285
    @cantedit9285 2 роки тому

    hi! can you show how to setup your terminal?

  • @shivamshandilya5059
    @shivamshandilya5059 3 роки тому

    You got a sub
    Great channel

  • @NotAFoe
    @NotAFoe 3 роки тому +1

    how to do this with inputs?

  • @wi8shad0w
    @wi8shad0w 3 роки тому

    i feel i am indebted to u

  • @bhaskaruprety230
    @bhaskaruprety230 2 роки тому

    Can i create full screen app with this library?

  • @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!

  • @minhphamhoang2894
    @minhphamhoang2894 2 роки тому +2

    It is nice but it should be developed as plugin rather than package

  • @tananuraj
    @tananuraj 3 роки тому +1

    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 7 місяців тому

      did you find out?

    • @tananuraj
      @tananuraj 7 місяців тому

      no

  • @chriskeo392
    @chriskeo392 Рік тому

    How do you use new line
    in console?

  • @john-r-edge
    @john-r-edge 2 роки тому

    Does it work in Jupyter Lab?

  • @ellisdoesstuff
    @ellisdoesstuff Рік тому

    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

  • @theQuantumPenguin
    @theQuantumPenguin 2 роки тому

    What other terminal emulators does this work with ?

  • @cambridgebreaths3581
    @cambridgebreaths3581 3 роки тому

    Can you use rich on G Colab. Thank you kindly

  • @JohnSmith-kd6ip
    @JohnSmith-kd6ip 4 місяці тому

    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.

  • @Kenu7
    @Kenu7 Рік тому

    how it works on input?

  • @sagar-tt4ub
    @sagar-tt4ub 2 роки тому

    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  2 роки тому +1

      I customized it with iTerm2 and Oh My Zsh

    • @sagar-tt4ub
      @sagar-tt4ub 2 роки тому

      @@patloeber thanks a lot

  • @markoshivapavlovic4976
    @markoshivapavlovic4976 2 роки тому

    nice

  • @whoami4955
    @whoami4955 2 роки тому

    where are you from?

  • @LuvxJacqu4li8e
    @LuvxJacqu4li8e 2 роки тому

    Nice but I don't think I'll need to learn another html

  • @kamalCode
    @kamalCode 3 роки тому +2

    Sir, please python developer learning ROADMAP PATH PLZ for web and app data science, AI plz share pic

  • @rajeshs5722
    @rajeshs5722 3 роки тому +1

    can you make a tutorial about pytest.🙄

    • @patloeber
      @patloeber  3 роки тому +2

      Yes this is on my list

    • @rajeshs5722
      @rajeshs5722 3 роки тому +1

      @@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).

  • @tomtomtomtom691
    @tomtomtomtom691 2 роки тому

    Hide that you can’t code; with colors!

  • @amanthakur4145
    @amanthakur4145 2 роки тому

    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.

  • @hatetheworld
    @hatetheworld 3 роки тому

    how do i do the blinking text?