Add typer to project
This commit is contained in:
+3
-1
@@ -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"
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user