-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathpyproject.toml
More file actions
183 lines (171 loc) · 4.39 KB
/
pyproject.toml
File metadata and controls
183 lines (171 loc) · 4.39 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
[project]
name = "creditnexus"
version = "1.0.0"
description = "Financial AI platform for credit agreement extraction and sustainability-linked loan verification"
readme = "README.md"
requires-python = ">=3.10"
license = {text = "Proprietary"}
authors = [
{name = "CreditNexus Team"}
]
keywords = ["finance", "ai", "llm", "cdm", "sustainability", "loans"]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Financial and Insurance Industry",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
]
dependencies = [
# Core LangChain & LLM
"langchain>=0.1.0",
"langchain-openai>=0.1.7",
"langchain-huggingface",
"langchain[huggingface]",
"langchain-experimental>=0.0.47",
# Core Framework
"pydantic>=2.0",
"pydantic-settings>=2.0.0",
"python-dotenv>=1.0.0",
# Web Framework
"fastapi>=0.104.0",
"uvicorn[standard]>=0.24.0",
"python-multipart>=0.0.6",
"starlette",
"httpx",
# Database & ORM
"sqlalchemy>=2.0.0",
"psycopg2-binary>=2.9.0",
"alembic>=1.13.0",
"pgvector>=0.2.5",
"sqlmodel>=0.0.16",
# Authentication & Security
"authlib",
"itsdangerous",
"PyJWT",
"python-jose[cryptography]",
"bcrypt",
"passlib",
"email-validator",
# Web3 & Blockchain
"eth-account>=0.13.0",
"eth-utils>=2.4.0",
# Document Processing
"PyPDF2>=3.0.0",
"pymupdf",
"python-docx>=1.1.0",
"openpyxl",
# Web Search (vendored from dev/requirements.txt)
"trafilatura>=1.6.0", # Web content extraction
"python-dateutil>=2.8.0", # Date parsing
"limits>=3.0.0", # Rate limiting
"filelock>=3.13.0", # Thread-safe file operations
# Data Processing
"pandas",
"numpy>=1.24.0",
"Pillow>=10.0.0",
"deepdiff>=6.0.0", # For diff generation between document versions
# Ground Truth Protocol - Geospatial Intelligence
"sentinelhub>=3.10.1",
"rasterio>=1.3.9",
"shapely>=2.0.3",
"torchgeo>=0.5.1",
"geopy>=2.4.1",
# Map Visualization
"folium>=0.15.1",
# AI & ML
"sentence_transformers",
"huggingface-hub[hf-xet]",
# Policy Engine & Configuration
"pyyaml>=6.0",
"watchdog>=3.0",
# Document Retrieval
"chromadb>=0.4.0",
"logfire>=4.17.0",
"logfire-api>=4.17.0",
"opentelemetry-sdk>=1.37.0",
"opentelemetry-exporter-otlp-proto-http>=1.37.0",
"opentelemetry-api>=1.37.0",
"icalendar>=6.3.2",
# Twilio integration
"twilio>=8.0.0",
"osmnx>=1.6.0",
"overpy>=0.6",
"geopandas>=0.14.0",
"slowapi>=0.1.9",
"polygon-api-client>=1.16.3",
"playwright>=1.57.0",
"yahooquery>=2.4.1",
"alpha-vantage>=3.0.0",
# Plaid / Banking (Trading Phase 1)
"plaid-python>=14.0.0,<40",
# Metrics & Observability
"prometheus-client>=0.19.0", # Prometheus Python client
"prometheus-fastapi-instrumentator>=6.1.0", # FastAPI Prometheus integration
"psutil>=5.9.0", # System metrics (CPU, memory, disk)
"alpaca-py>=0.15.0",
"web3>=7.14.0",
"modal>=1.3.1",
]
[project.optional-dependencies]
dev = [
"pytest>=7.0.0",
"pytest-asyncio",
"pytest-cov",
"black",
"ruff",
"mypy",
]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = ["app"]
[tool.uv]
dev-dependencies = [
"pytest>=7.0.0",
"pytest-asyncio",
"pytest-cov",
# Security scanning tools
"bandit[toml]>=1.7.5",
"semgrep>=1.45.0",
"pip-audit>=2.6.0",
"safety>=2.3.5",
"detect-secrets>=1.4.0",
]
[tool.ruff]
line-length = 100
target-version = "py310"
select = ["E", "F", "I", "N", "W", "UP", "S"] # Added S for security-related rules
ignore = ["E501"]
[tool.ruff.lint]
exclude = [
".git",
"__pycache__",
".venv",
"venv",
"node_modules",
"client",
"alembic/versions",
]
[tool.black]
line-length = 100
target-version = ["py310", "py311", "py312"]
[tool.mypy]
python_version = "3.10"
warn_return_any = true
warn_unused_configs = true
disallow_untyped_defs = false
ignore_missing_imports = true
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = ["test_*.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
addopts = "-v --tb=short"
[dependency-groups]
predictions = [
"chronos-forecasting>=2.2.2",
"torch>=2.9.1",
]