Merge branch 'ml'

This commit is contained in:
gitgernit
2025-11-22 15:00:16 +03:00
23 changed files with 1204 additions and 297 deletions
+28 -6
View File
@@ -5,11 +5,18 @@ description = "template project"
version = "1.0.0"
dependencies = [
"uuid_utils==0.11.1",
"adaptix==3.0.0b11",
"fastapi==0.119.0",
"uvicorn==0.37.0",
"sqlalchemy==2.0.44",
"dishka==1.7.2",
"pydantic[email]>=2.12.4",
"levenshtein>=0.27.3",
"adaptix==3.0.0b11",
"markupsafe",
]
[dependency-groups]
backend = [
"sqlalchemy==2.0.44",
"argon2_cffi==23.1.0",
"cryptography==46.0.3",
"httpx==0.28.1",
@@ -18,12 +25,12 @@ dependencies = [
"aioboto3==15.5.0",
"prometheus-fastapi-instrumentator>=7.1.0",
"python-multipart>=0.0.20",
"pydantic[email]>=2.12.4",
"levenshtein>=0.27.3",
"pgvector>=0.4.1",
]
[dependency-groups]
ml = [
"sentence-transformers>=5.1.2",
"torch",
]
types = [
"types-cachetools==6.2.0.20250827",
]
@@ -51,6 +58,7 @@ dev = [
[project.scripts]
web_api_cli = "template_project.web_api.entry_point:main"
ml_api_cli = "template_project.ml.entry_point:main"
[tool.pytest.ini_options]
testpaths = ["tests"]
@@ -62,6 +70,20 @@ filterwarnings = [
asyncio_default_test_loop_scope = "session"
asyncio_default_fixture_loop_scope = "session"
[tool.uv]
required-environments = [
"sys_platform == 'linux' and platform_machine == 'x86_64'"
]
[[tool.uv.index]]
name = "pytorch"
url = "https://download.pytorch.org/whl/cpu"
default = false
[tool.uv.sources]
torch = { index = "pytorch" }
markupsafe = { git = "https://github.com/pallets/markupsafe", rev = "3.0.2" }
[tool.mypy]
strict = true
strict_bytes = true