feat(tui): display books as a table

This commit is contained in:
Kristofers Solo
2023-11-01 18:57:35 +02:00
parent 00adf20008
commit 8b8cdd00d0
11 changed files with 145 additions and 24 deletions

16
src/main.py Executable file
View File

@@ -0,0 +1,16 @@
#!/usr/bin/env python3
from pathlib import Path
from bookstore.inventory import Inventory
from ui import tui
def main() -> None:
db_path = Path("db.sqlite3")
inventory = Inventory(db_path)
tui.render(inventory)
if __name__ == "__main__":
main()