Start dividing out functions into different files
This commit is contained in:
+1
-1
@@ -8,7 +8,7 @@ authors = [
|
||||
]
|
||||
requires-python = ">=3.14"
|
||||
dependencies = [
|
||||
"typer>=0.27.3",
|
||||
"typer[all]>=0.27.3",
|
||||
]
|
||||
|
||||
[project.scripts]
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
import sqlite3
|
||||
|
||||
import typer
|
||||
|
||||
from .helpers import create_db
|
||||
|
||||
|
||||
def db_init() -> None:
|
||||
db = sqlite3.connect("events")
|
||||
|
||||
db.autocommit = True
|
||||
|
||||
create_db(db)
|
||||
@@ -0,0 +1,6 @@
|
||||
|
||||
import sqlite3
|
||||
|
||||
import typer
|
||||
|
||||
from .db import db_init
|
||||
Reference in New Issue
Block a user