-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpyproject.toml
More file actions
120 lines (110 loc) · 2.68 KB
/
pyproject.toml
File metadata and controls
120 lines (110 loc) · 2.68 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
[project]
name = "pharmagraphrag"
version = "0.1.0"
description = "GraphRAG system for querying drug interactions and adverse events using FDA data"
readme = "README.md"
license = { text = "MIT" }
requires-python = ">=3.11"
authors = [
{ name = "Jose María Ponce Bernabé", email = "jmponcebe@gmail.com" },
]
keywords = ["graphrag", "knowledge-graph", "neo4j", "pharmacology", "fda", "faers"]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Science/Research",
"Topic :: Scientific/Engineering :: Medical Science Apps.",
"Programming Language :: Python :: 3.13",
]
dependencies = [
# Data processing
"pandas>=2.2",
"pyarrow>=18.0",
"requests>=2.32",
"httpx>=0.28",
# Knowledge Graph
"neo4j>=5.26",
# Vector Store
"chromadb>=0.6",
"sentence-transformers>=3.3",
# LLM
"google-genai>=1.64.0",
"ollama>=0.4",
# API
"fastapi>=0.115",
"uvicorn[standard]>=0.34",
"pydantic>=2.10",
"pydantic-settings>=2.7",
# NLP / Entity extraction
"rapidfuzz>=3.14.3",
# Utilities
"python-dotenv>=1.0",
"loguru>=0.7",
"tqdm>=4.67",
# UI (included in main deps for Streamlit Cloud compatibility)
"streamlit>=1.41",
"streamlit-agraph>=0.0.45",
"pyvis>=0.3",
"plotly>=5.24",
"langgraph>=1.1.3",
"langchain-google-genai>=4.2.1",
"langchain-openai>=1.1.0",
"langchain-core>=1.2.22",
"langfuse>=4.3.1",
"ragas>=0.4.3",
"datasets>=4.8.4",
]
[project.optional-dependencies]
dev = [
"pytest>=8.3",
"pytest-cov>=6.0",
"pytest-asyncio>=0.25",
"ruff>=0.9",
"mypy>=1.14",
"pre-commit>=4.0",
]
[project.urls]
Repository = "https://github.com/jmponcebe/PharmaGraphRAG"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = ["src/pharmagraphrag"]
# --- Ruff ---
[tool.ruff]
target-version = "py311"
line-length = 100
src = ["src"]
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"N", # pep8-naming
"UP", # pyupgrade
"B", # flake8-bugbear
"SIM", # flake8-simplify
"TCH", # flake8-type-checking
"RUF", # Ruff-specific rules
]
ignore = ["E501", "TC001", "TC003"]
[tool.ruff.lint.isort]
known-first-party = ["pharmagraphrag"]
# --- Pytest ---
[tool.pytest.ini_options]
testpaths = ["tests"]
pythonpath = ["src"]
addopts = [
"-ra",
"--strict-markers",
"--tb=short",
"--cov=pharmagraphrag",
"--cov-report=term-missing",
]
# --- MyPy ---
[tool.mypy]
python_version = "3.11"
warn_return_any = true
warn_unused_configs = true
disallow_untyped_defs = true
mypy_path = "src"