Can Rich's print replace normal python print with datastructure aware color formatting #3322
Unanswered
dineshdharme
asked this question in
Ideas
Replies: 2 comments 3 replies
-
I'm afraid I don't understand the question. Can you elaborate and post some examples of what you want? |
Beta Was this translation helpful? Give feedback.
1 reply
-
@willmcgugan : Is it already available in some other module? Because I didn't find such an important usecase mentioned on the Readme. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Let's say we have to print a List, then rich can print the whole list in one determined color with faded color shades.
Similarly formatting can be applied to nested lists. Or nested dictionary or etc. Determining the format through reflection.
Or f-string formatting like
print(f"{names_list=}")
I mean subsequently supporting all the datastructures that Rich's print can handle out of the box.
Beta Was this translation helpful? Give feedback.
All reactions