Created
February 26, 2026 13:42
-
-
Save kytta/d2f7fde2bdddbc0472e5ceb8c9d6b9bb to your computer and use it in GitHub Desktop.
booktabs-style Box for Rich tables
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from rich.box import Box | |
| BOOKTABS = Box( | |
| " ━━ \n" | |
| " \n" | |
| " ─ \n" | |
| " \n" | |
| " \n" | |
| " ── \n" | |
| " \n" | |
| " ━━ \n" | |
| ) | |
| ### | |
| from rich import print | |
| from rich.table import Table | |
| table = Table(box=BOOKTABS) | |
| # ... | |
| print(table) |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Output: