feat: shared library for stock analysis microservices
- Common models (Stock, DailyPrice, Valuation, ScreeningResult) - Database connectors (PostgreSQL via asyncpg, MongoDB via motor, Redis) - Redis Streams pub/sub utilities - Base collector class with common patterns - Logging configuration with structlog Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
25
pyproject.toml
Normal file
25
pyproject.toml
Normal file
@ -0,0 +1,25 @@
|
||||
[project]
|
||||
name = "stock-common"
|
||||
version = "0.1.0"
|
||||
description = "Shared models, config, DB/Redis utilities for stock analysis microservices"
|
||||
requires-python = ">=3.12"
|
||||
dependencies = [
|
||||
"pydantic>=2.0",
|
||||
"pydantic-settings>=2.0",
|
||||
"asyncpg>=0.29",
|
||||
"motor>=3.3",
|
||||
"redis>=5.0",
|
||||
"structlog>=24.0",
|
||||
"aiohttp>=3.9",
|
||||
"aiolimiter>=1.1",
|
||||
"tenacity>=8.2",
|
||||
"fastapi>=0.115",
|
||||
"uvicorn[standard]>=0.34",
|
||||
]
|
||||
|
||||
[build-system]
|
||||
requires = ["hatchling"]
|
||||
build-backend = "hatchling.build"
|
||||
|
||||
[tool.hatch.build.targets.wheel]
|
||||
packages = ["src/stock_common"]
|
||||
Reference in New Issue
Block a user