Добавить балансировку API и атомарные повторы сообщений

This commit is contained in:
Горбанюк
2026-10-17 18:41:13 +03:00
parent 0ab3a341aa
commit 534ddd1371
39 changed files with 4113 additions and 1 deletions
+43
View File
@@ -0,0 +1,43 @@
[project]
name = "mtusi-messenger"
version = "0.3.0"
description = "MTUSI lab 3: replicated messenger with atomic request idempotency"
requires-python = ">=3.14,<3.15"
dependencies = [
"argon2-cffi==25.1.0",
"fastapi==0.143.3",
"psycopg[binary,pool]==3.3.6",
"pydantic==2.14.1",
"redis==8.1.0",
"uvicorn==0.54.0",
]
[build-system]
requires = ["hatchling==1.27.0"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = ["src/messenger"]
[dependency-groups]
dev = [
"httpx==0.28.1",
"openapi-spec-validator==0.7.2",
"pytest==9.1.1",
"ruff==0.17.1",
]
research = ["matplotlib==3.11.2"]
[tool.pytest.ini_options]
testpaths = ["student-tests"]
addopts = "-ra --tb=short"
[tool.ruff]
target-version = "py314"
line-length = 100
[tool.ruff.lint]
select = ["E", "F", "I", "B", "UP"]
[tool.ruff.per-file-target-version]
"scripts/*.py" = "py39"