Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[REQUEST] More examples #325

Open
willmcgugan opened this issue Oct 3, 2020 · 5 comments
Open

[REQUEST] More examples #325

willmcgugan opened this issue Oct 3, 2020 · 5 comments

Comments

@willmcgugan
Copy link
Owner

@willmcgugan willmcgugan commented Oct 3, 2020

The examples directory contains a few .py files that demonstrate a feature of Rich.

It would be nice to have more of these. No example should short and succinct, demonstrate a feature well, non-trivial, and shouldn't cover features that already exist.

@surajit-techie
Copy link

@surajit-techie surajit-techie commented Oct 3, 2020

I would like to work on this. Could you please assign this to me?

@willmcgugan
Copy link
Owner Author

@willmcgugan willmcgugan commented Oct 3, 2020

Done.

@FedeClaudi
Copy link

@FedeClaudi FedeClaudi commented Oct 3, 2020

Hi, great idea!

If I can suggest one, it took me a while to figure out how to use rich to get fancy logging working while saving to a file. Perhaps an example would help others?

I got it to work with loguru in the end, happy to share some code if you want.

@willmcgugan
Copy link
Owner Author

@willmcgugan willmcgugan commented Oct 3, 2020

@FedeClaudi Sounds like a good one. What problems did you have?

@FedeClaudi
Copy link

@FedeClaudi FedeClaudi commented Oct 3, 2020

Looking at the issues I got the rich handler to work with rich's traceback, but I couldn't get them to show up in the file.

I'm the end I saw an issue about loguru, and with that it mostly works. But perhaps not everybody wants to use that, add a dependency etc. So an example of it working with the vanilla logger would be nice!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.

Follow Lee on X/Twitter - Father, Husband, Serial builder creating AI, crypto, games & web tools. We are friends :) AI Will Come To Life!

Check out: eBank.nz (Art Generator) | Netwrck.com (AI Tools) | Text-Generator.io (AI API) | BitBank.nz (Crypto AI) | ReadingTime (Kids Reading) | RewordGame | BigMultiplayerChess | WebFiddle | How.nz | Helix AI Assistant