diff --git a/pyproject.toml b/pyproject.toml index ecf26bd..c59082c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -7,7 +7,9 @@ authors = [ { name = "Wylie Campbell", email = "wylie@kitsch.digital" } ] requires-python = ">=3.14" -dependencies = [] +dependencies = [ + "typer>=0.27.3", +] [project.scripts] cs50-final-project = "cs50_final_project:main" diff --git a/src/cs50_final_project/__init__.py b/src/cs50_final_project/__init__.py index cbf447e..fe9c7ed 100644 --- a/src/cs50_final_project/__init__.py +++ b/src/cs50_final_project/__init__.py @@ -1,7 +1,14 @@ + import sqlite3 +import typer + from .helpers import create_db def main() -> None: db = sqlite3.connect("events") + + db.autocommit = True + + create_db(db)