Skip to content

Use rich library #26

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

Merged
merged 12 commits into from
Aug 9, 2025
Merged

Use rich library #26

merged 12 commits into from
Aug 9, 2025

Conversation

Res260
Copy link
Collaborator

@Res260 Res260 commented Aug 8, 2025

  • Replace the coloredlogs and tabulate dependencies by rich:

    • Replace most print() statements by rich.print() and all tabulate tables by rich.table.Table()
    • Replace coloredlogs handler with RichHandler
    • In ctf validate, add a rich.progress.Progress() and make most log statements debug instead of info
  • Make default logging INFO and add the --verbose or -v flag to see DEBUG log statements

  • Prompt for template in ctf new

image image image

Res260 added 4 commits August 7, 2025 21:05
- Replace most `print()` statements by `rich.print()` and all `tabulate` tables by `rich.table.Table()`
- Replace `coloredlogs` handler with `RichHandler`
- In `ctf validate`, add a `rich.progress.Progress()` and make most log statements `debug` instead of `info`
@Res260 Res260 marked this pull request as ready for review August 8, 2025 01:14
@MOBergeron MOBergeron merged commit d2a9e04 into main Aug 9, 2025
1 check passed
@MOBergeron MOBergeron deleted the rich branch August 9, 2025 03:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants