Start dividing out functions into different files
This commit is contained in:
+1
-1
@@ -8,7 +8,7 @@ authors = [
|
|||||||
]
|
]
|
||||||
requires-python = ">=3.14"
|
requires-python = ">=3.14"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"typer>=0.27.3",
|
"typer[all]>=0.27.3",
|
||||||
]
|
]
|
||||||
|
|
||||||
[project.scripts]
|
[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
|
||||||
@@ -29,7 +29,7 @@ dependencies = [
|
|||||||
]
|
]
|
||||||
|
|
||||||
[package.metadata]
|
[package.metadata]
|
||||||
requires-dist = [{ name = "typer", specifier = ">=0.27.3" }]
|
requires-dist = [{ name = "typer", extras = ["all"], specifier = ">=0.27.3" }]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "markdown-it-py"
|
name = "markdown-it-py"
|
||||||
|
|||||||
Reference in New Issue
Block a user