-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpyproject.toml
More file actions
361 lines (330 loc) · 10.2 KB
/
pyproject.toml
File metadata and controls
361 lines (330 loc) · 10.2 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
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
[build-system]
build-backend = "setuptools.build_meta"
requires = ["setuptools >= 64", "setuptools-scm>=8"]
[tool.setuptools.packages.find]
where = ["src"]
include = ["health_ai", "health_assistant.*"]
[tool.setuptools_scm]
git_describe_command = "git describe --long --first-parent"
[build-system]
requires = ["hatchling", "hatch-fancy-pypi-readme"]
build-backend = "hatchling.build"
[project]
name = "health-assistant-ai"
dynamic = ["readme", "version"]
description = "AI-powered health consultation platform with intelligent symptom analysis, medication guidance, and wellness management."
license = { text = "Apache-2.0" }
requires-python = ">=3.11"
authors = [
{ name = "Health Assistant AI Team" },
{ email = "team@health-assistant-ai.org" },
]
classifiers = [
"Development Status :: 4 - Beta",
"Environment :: Console",
"Environment :: Web Environment",
"Intended Audience :: Healthcare Industry",
"Intended Audience :: End Users/Desktop",
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Topic :: Scientific/Engineering :: Medical Science Apps.",
"Topic :: Internet :: WWW/HTTP :: Dynamic Content",
"Topic :: Software Development :: Libraries :: Python Modules",
]
keywords = [
"health",
"medical",
"AI",
"healthcare",
"symptom-analysis",
"medication",
"wellness",
"nutrition",
"fitness",
"telemedicine",
"consultation",
"diagnosis-support",
"health-monitoring",
"HIPAA-compliant",
]
dependencies = [
"aiofiles~=24.1",
"click~=8.1",
"cryptography~=43.0",
"fastapi~=0.115",
"httpx~=0.27",
"jinja2~=3.1",
"jsonschema~=4.23",
"loguru~=0.7",
"neo4j~=5.25",
"numpy~=1.26",
"overrides~=7.7",
"pillow~=10.4",
"psycopg[binary]~=3.2",
"pymilvus~=2.4",
"pydantic~=2.9",
"python-dotenv~=1.0",
"PyYAML~=6.0",
"requests~=2.32",
"retry~=0.9",
"rich~=13.9",
"sqlalchemy~=2.0",
"tabulate~=0.9",
"typer~=0.12",
"urllib3~=2.2",
"uvicorn~=0.31",
"uvloop~=0.20",
"scikit-learn~=1.3",
"pandas~=2.1",
"matplotlib~=3.8",
"seaborn~=0.12",
"nltk~=3.8",
"spacy~=3.7",
"transformers~=4.35",
"torch~=2.1",
"langchain~=0.1",
"openai~=1.3",
"anthropic~=0.7",
]
[project.optional-dependencies]
# Optional dependencies for specialized health functionalities
# Keep sorted!!!
all = ["health-assistant-ai[medical,nutrition,fitness,mental-health,emergency]"] # All health modules
medical = [
"fhir.resources~=7.0.2",
"medspacy~=1.0.0",
"bioregex~=1.0.3",
"pydicom~=2.4.0", # Medical imaging
"nibabel~=5.2.0", # Neuroimaging
]
nutrition = [
"nutrient-database~=1.0.0",
"food-data-central~=0.2.0",
"calorie-tracker~=2.1.0",
]
fitness = [
"fitness-tracker~=1.5.0",
"workout-planner~=2.0.0",
"exercise-database~=1.2.0",
]
mental-health = [
"psychology-nlp~=0.8.0",
"mood-tracker~=1.1.0",
"mental-wellness~=1.0.0",
]
emergency = [
"emergency-protocols~=1.0.0",
"first-aid-db~=2.0.0",
"crisis-intervention~=1.2.0",
]
databases = [
"health-assistant-ai[mysql,redis]",
]
mysql = ["health-assistant-mysql"]
redis = ["health-assistant-redis"]
s3 = ["health-assistant-s3"]
telemetry = [
"health-assistant-opentelemetry",
"health-assistant-monitoring",
]
security = [
"cryptography~=43.0.0",
"bcrypt~=4.1.2",
"pyjwt~=2.8.0",
]
examples = [
"health_symptom_analyzer",
"health_medication_checker",
"health_nutrition_planner",
"health_fitness_tracker",
"health_emergency_response",
"health_mental_wellness",
"health_preventive_care",
"health_telemedicine_bridge",
]
# Optional dependency needed when use_gunicorn is set to true
gunicorn = [
"gunicorn~=23.0",
]
# Additional health-specific CLI tools
[project.scripts]
health-ai = "health_assistant.cli:main"
symptom-analyzer = "health_assistant.tools.symptom_analyzer:main"
medication-checker = "health_assistant.tools.medication_checker:main"
nutrition-planner = "health_assistant.tools.nutrition_planner:main"
fitness-tracker = "health_assistant.tools.fitness_tracker:main"
emergency-response = "health_assistant.tools.emergency_response:main"
mental-wellness = "health_assistant.tools.mental_wellness:main"
health-monitor = "health_assistant.tools.health_monitor:main"
telemedicine = "health_assistant.tools.telemedicine:main"
[project.urls]
Homepage = "https://github.com/cworld1/health-assistant-ai"
Documentation = "https://health-assistant-ai.readthedocs.io/"
Repository = "https://github.com/cworld1/health-assistant-ai.git"
"Bug Tracker" = "https://github.com/cworld1/health-assistant-ai/issues"
Changelog = "https://github.com/cworld1/health-assistant-ai/blob/main/CHANGELOG.md"
"Medical Disclaimer" = "https://health-assistant-ai.org/disclaimer"
"Privacy Policy" = "https://health-assistant-ai.org/privacy"
[tool.uv]
config-settings = { editable_mode = "compat" }
[tool.uv.sources]
# Health Assistant workspace packages
health-assistant-mysql = { workspace = true }
health-assistant-redis = { workspace = true }
health-assistant-s3 = { workspace = true }
health-assistant-opentelemetry = { workspace = true }
health-assistant-monitoring = { workspace = true }
# Health examples
health_symptom_analyzer = { path = "examples/medical/symptom_analyzer", editable = true }
health_medication_checker = { path = "examples/medical/medication_checker", editable = true }
health_nutrition_planner = { path = "examples/wellness/nutrition_planner", editable = true }
health_fitness_tracker = { path = "examples/wellness/fitness_tracker", editable = true }
health_emergency_response = { path = "examples/emergency/emergency_response", editable = true }
health_mental_wellness = { path = "examples/mental_health/mental_wellness", editable = true }
health_preventive_care = { path = "examples/preventive/preventive_care", editable = true }
health_telemedicine_bridge = { path = "examples/telemedicine/telemedicine_bridge", editable = true }
[tool.uv.workspace]
members = ["packages/*"]
exclude = ["packages/compat"]
[dependency-groups]
# Dependency groups for health assistant development
dev = [
"asgi-lifespan~=2.1",
"httpx-sse~=0.4",
"ipython~=8.31",
"myst-parser~=4.0",
"nbsphinx~=0.9",
"health-assistant-test",
"sphinx-rtd-theme>=2.0.0",
"pip>=24.3.1",
"pre-commit>=4.0,<5.0",
"pytest_httpserver==1.1.*",
"pytest-asyncio==0.24.*",
"pytest-cov~=6.1",
"pytest-pretty~=1.2.0",
"pytest~=8.3",
"python-docx~=1.1.0",
"ruff~=0.12",
"setuptools >= 64",
"setuptools_scm>=8",
"sphinx~=8.2",
"sphinx-autoapi>=3.6",
"sphinx-copybutton>=0.5",
"sphinx-mermaid",
"tomlkit~=0.13.2",
"twine~=6.0",
"vale~=3.12",
"yapf==0.43.*",
]
medical = [
"fhir.resources~=7.0.2",
"medspacy~=1.0.0",
"bioregex~=1.0.3",
]
[project.entry-points.'health_assistant.components']
health_agents = "health_assistant.agent.register"
health_authentication = "health_assistant.authentication.register"
health_embedders = "health_assistant.embedder.register"
health_evaluators = "health_assistant.eval.register"
health_llms = "health_assistant.llm.register"
health_object_stores = "health_assistant.object_store.register"
health_observability = "health_assistant.observability.register"
health_retrievers = "health_assistant.retriever.register"
health_tools = "health_assistant.tool.register"
[project.entry-points.'health_assistant.medical_services']
symptom_analyzer = "health_assistant.medical.symptom_analyzer"
medication_checker = "health_assistant.medical.medication_checker"
emergency_response = "health_assistant.medical.emergency_response"
health_monitoring = "health_assistant.medical.health_monitoring"
[project.entry-points.'health_assistant.wellness_services']
nutrition_planner = "health_assistant.wellness.nutrition_planner"
fitness_tracker = "health_assistant.wellness.fitness_tracker"
mental_health = "health_assistant.wellness.mental_health"
[tool.setuptools]
include-package-data = true
# List any markers that users would reasonably want to filter by.
# These show up when querying `pytest --markers`
[tool.pytest.ini_options]
markers = [
"benchmark: Performance benchmarks for health services",
"e2e: End-to-end health consultation tests",
"integration: Integration tests for medical databases and APIs",
"medical: Medical accuracy and safety tests",
"privacy: Privacy and security compliance tests",
"slow: Slow tests requiring external medical APIs",
]
filterwarnings = [
# Health-specific warning filters
"ignore:^invalid escape sequence:SyntaxWarning",
"ignore:.*medical.*:DeprecationWarning",
]
testpaths = ["tests", "examples/*/tests", "packages/*/tests"]
asyncio_mode = "auto"
asyncio_default_fixture_loop_scope = "session"
[tool.ruff]
# Set the maximum line length to 120.
line-length = 120
target-version = "py311"
[tool.ruff.lint]
select = [
# The E, F, W categories are flake8 rules.
"E",
"F",
"W",
# Enable isort support
"I",
# Enable partial pylint support
"PL",
]
extend-ignore = [
"PLC0415", # Allow lazy imports inside functions
# Disable all the "too-*" checks, as they are too strict for our codebase
"PLR0904", # too-many-public-methods
"PLR0911", # too-many-return-statements
"PLR0912", # too-many-branches
"PLR0913", # too-many-arguments
"PLR0914", # too-many-locals
"PLR0915", # too-many-statements
"PLR0917", # too-many-positional-arguments
"PLR1702", # too-many-nested-blocks
"PLR2004", # Magic value used in comparison this happens a lot within unittests
"PLW0108", # unnecessary-lambda
"PLW2901", # allow re-assigning a loop variable
]
[tool.ruff.lint.isort]
combine-as-imports = true
default-section = "third-party"
force-single-line = true
known-first-party = ["health_assistant", "health_*", "_utils"]
known-third-party = [
"biopython",
"medpy",
"pydicom",
"fhir",
"langchain",
"openai",
"anthropic",
"transformers",
"torch",
"scikit-learn",
"pandas",
"numpy",
"redis",
]
order-by-type = true
# ===== yapf Config =====
[tool.yapf]
based_on_style = "pep8"
column_limit = 120
split_all_top_level_comma_separated_values = true
join_multiple_lines = true
indent_dictionary_value = true
# ===== pyright Config =====
[tool.pyright]
deprecateTypingAliases = true
reportInvalidTypeForm = "warning"