-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpyproject.toml
More file actions
167 lines (152 loc) · 4.39 KB
/
pyproject.toml
File metadata and controls
167 lines (152 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
[project]
name = "nlp2sql"
version = "0.2.0rc13"
description = "Enterprise-ready Natural Language to SQL converter with multi-provider support. Built for production scale (1000+ tables) with Clean Architecture."
readme = "README.md"
license = {text = "MIT"}
authors = [
{ name = "luiscarbonel1991", email = "devhighlevel@gmail.com" }
]
keywords = ["sql", "nlp", "ai", "natural-language", "database", "query-generation", "llm", "postgres", "mysql", "enterprise", "multi-provider", "production", "clean-architecture", "schema-filtering"]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Database",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
]
requires-python = ">=3.9"
dependencies = [
"pydantic>=2.5.0",
"pydantic-settings>=2.0.0",
"sqlalchemy>=2.0.0",
"psycopg2-binary>=2.9.0",
"openai>=1.0.0",
"anthropic>=0.18.0",
"google-generativeai>=0.3.0",
"boto3>=1.34.0",
"azure-identity>=1.15.0",
"numpy>=1.24.0",
"scikit-learn>=1.3.0",
"tenacity>=8.2.0",
"structlog>=24.1.0",
"httpx>=0.25.0",
"redis>=5.0.0",
"tiktoken>=0.5.0",
"faiss-cpu>=1.7.4",
"pandas>=2.0.0",
"greenlet>=3.2.3",
"click>=8.0.0",
"psycopg[binary]>=3.2.13",
"sqlalchemy-redshift>=0.7.0",
]
[project.optional-dependencies]
mysql = ["pymysql>=1.1.0", "mysql-connector-python>=8.0.0"]
oracle = ["oracledb>=2.0.0"]
mssql = ["pymssql>=2.2.0"]
anthropic = ["anthropic>=0.18.0"]
gemini = ["google-generativeai>=0.3.0"]
all-providers = ["anthropic>=0.18.0", "google-generativeai>=0.3.0"]
embeddings-local = ["sentence-transformers>=2.5.0"]
embeddings-openai = []
all-embeddings = ["sentence-transformers>=2.5.0"]
dev = [
"pytest>=7.4.0",
"pytest-asyncio>=0.21.0",
"pytest-cov>=4.1.0",
"pytest-mock>=3.11.0",
"ruff>=0.1.0",
"mypy>=1.7.0",
"black>=23.7.0",
"isort>=5.12.0",
"sphinx>=7.0.0",
"sphinx-rtd-theme>=1.3.0",
"myst-parser>=2.0.0",
]
[project.urls]
"Homepage" = "https://github.com/luiscarbonel1991/nlp2sql"
"Bug Tracker" = "https://github.com/luiscarbonel1991/nlp2sql/issues"
"Documentation" = "https://nlp2sql.readthedocs.io"
[project.scripts]
nlp2sql = "nlp2sql.cli:main"
[tool.uv]
dev-dependencies = [
"pytest>=7.4.0",
"pytest-asyncio>=0.21.0",
"pytest-cov>=4.1.0",
"pytest-mock>=3.11.0",
"ruff>=0.1.0",
"mypy>=1.7.0",
"ipython>=8.0.0",
"notebook>=7.0.0",
]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = ["src/nlp2sql"]
[tool.ruff]
target-version = "py39"
line-length = 120
indent-width = 4
exclude = [
".venv_test",
".venv",
"__pycache__",
"*.egg-info",
".git",
".mypy_cache",
".pytest_cache",
".ruff_cache",
"build",
"dist",
"*.iml",
"*.md",
"examples/"
]
[tool.ruff.lint]
select = ["E", "F", "I", "N", "W", "B", "C90", "UP", "ANN", "S", "A", "C4", "RET", "SIM", "PLR", "PLW", "RUF"]
ignore = ["ANN101", "ANN102", "S101"]
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
[tool.mypy]
python_version = "3.9"
warn_return_any = true
warn_unused_configs = true
disallow_untyped_defs = true
ignore_missing_imports = true
[tool.pytest.ini_options]
minversion = "7.0"
addopts = "-ra -q --strict-markers"
testpaths = ["tests"]
pythonpath = ["src"]
markers = [
"integration: marks tests as integration tests (deselect with '-m \"not integration\"')",
"llm: marks tests that require a real AI API key (deselect with '-m \"not llm\"')",
"slow: marks tests as slow (deselect with '-m \"not slow\"')",
]
filterwarnings = [
"ignore::DeprecationWarning",
"ignore:.*numpy.core._multiarray_umath.*:DeprecationWarning",
"ignore:.*builtin type.*:DeprecationWarning",
]
[tool.coverage.run]
source = ["src/nlp2sql"]
omit = ["*/tests/*", "*/benchmarks/*"]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"if self.debug:",
"if settings.DEBUG",
"raise AssertionError",
"raise NotImplementedError",
"if __name__ == .__main__.:",
]