Skip to content

Commit 74e71e7

Browse files
authored
use in mem db for now, update version (#39)
1 parent fc156c9 commit 74e71e7

2 files changed

Lines changed: 14 additions & 1 deletion

File tree

pyproject.toml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,18 @@
11
[project]
22
name = "lingua-loop"
3-
version = "0.1.3"
3+
version = "0.1.4"
4+
authors = [
5+
{name="Jared Frazier", email="cscidev001@gmail.com"}
6+
]
47
description = "A web application to train your listening skills by transcribing real speech from YouTube videos."
58
readme = "README.md"
69
license = "MIT"
710
license-files = [ "LICENSE" ]
811
requires-python = ">=3.12"
12+
classifiers = [
13+
"Programming Language :: Python :: 3",
14+
"Operating System :: OS Independent",
15+
]
916
dependencies = [
1017
"aiosqlite>=0.22.1",
1118
"fastapi[standard]>=0.135.1",
@@ -16,6 +23,9 @@ dependencies = [
1623
[project.scripts]
1724
lingua-loop = "lingua_loop.scripts.run:run"
1825

26+
[project.urls]
27+
Homepage = "https://github.com/jfdev001/lingua-loop"
28+
1929
# https://github.com/astral-sh/uv/issues/9271#issuecomment-2488635515
2030
[build-system]
2131
requires = ["setuptools>=42"]

src/lingua_loop/main.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
from contextlib import asynccontextmanager
2+
from os import remove
23
from typing import TypedDict
34

45
from fastapi import FastAPI
@@ -30,6 +31,8 @@ async def lifespan(app: FastAPI):
3031
await create_db_and_tables(async_engine=async_engine)
3132
yield {"async_session_maker": async_session_maker}
3233
await shutdown(async_engine=async_engine)
34+
if async_engine.url.database: # TODO: basically in mem db for now
35+
remove(async_engine.url.database)
3336

3437

3538
def create_app() -> FastAPI:

0 commit comments

Comments
 (0)