3 ms·
What about the API design is so awesome?
by tmearnest 5y ago
What about the API design is so awesome?
- simonw 5y agoMainly it's the absurd amount of functionality that's packed into the library, in a way that interoperates in a predictable way. Rich does a LOT of stuff, and all of the things it does work with each other - so it's easy to compose them together into sophisticated combined layouts. It can render Markdown in a way that works on a console. It has gorgeous progress bars and spinners built in. It has a very competent table layout mechanism. https://github.com/willmcgugan/rich/tree/master/examples https://github.com/willmcgugan/rich/tree/master/examples is full of neat examples of what it can do - all very Pythonic in the way they work.