- src/metrics.py: счётчики строк, чанков, файлов (processed/failed) и start_metrics_server - settings: METRICS_ENABLED (true), METRICS_PORT (9100) - main: запуск сервера метрик перед pipeline - pipeline: учёт записанных в Qdrant строк/чанков; финальная группа без чанков сдвигает чекпоинт, не вызывая embed/upsert - helm: порт metrics в контейнере, METRICS_ENABLED/METRICS_PORT в configmap - prometheus-client в зависимостях, тесты и документация
43 lines
841 B
TOML
43 lines
841 B
TOML
[build-system]
|
|
requires = ["hatchling"]
|
|
build-backend = "hatchling.build"
|
|
|
|
[project]
|
|
name = "etl-study"
|
|
version = "0.1.0"
|
|
description = "ETL-сервис: S3 JSON → Embeddings → Qdrant для RAG"
|
|
requires-python = ">=3.11"
|
|
dependencies = [
|
|
"aioboto3>=13.0",
|
|
"qdrant-client>=1.12",
|
|
"httpx>=0.27",
|
|
"pydantic-settings>=2.5",
|
|
"structlog>=24.4",
|
|
"tiktoken>=0.7",
|
|
"ijson>=3.3",
|
|
"prometheus-client>=0.20",
|
|
]
|
|
|
|
[project.scripts]
|
|
etl-service = "src.main:run"
|
|
etl-progress = "src.cli.progress:main"
|
|
|
|
[project.optional-dependencies]
|
|
dev = [
|
|
"pytest>=8.0",
|
|
"pytest-asyncio>=0.24",
|
|
"pytest-mock>=3.14",
|
|
]
|
|
|
|
[tool.hatch.build.targets.wheel]
|
|
packages = ["src"]
|
|
|
|
[tool.pytest.ini_options]
|
|
asyncio_mode = "auto"
|
|
testpaths = ["tests"]
|
|
pythonpath = ["src"]
|
|
|
|
[tool.ruff]
|
|
line-length = 100
|
|
target-version = "py311"
|