-
-
Notifications
You must be signed in to change notification settings - Fork 26
/
Copy pathpyproject.toml
207 lines (182 loc) · 4.19 KB
/
pyproject.toml
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
# https://setuptools.pypa.io/en/latest/userguide/quickstart.html
[build-system]
requires = ["setuptools>=61.0", "wheel"]
build-backend = "setuptools.build_meta"
[tool.black]
line-length = 88
target-version = ['py310']
include = '\.pyi?$'
exclude = '''
(
/(
\.eggs # exclude a few common directories in the
| \.git # root of the project
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| _build
| buck-out
| build
| dist
)/
| foo.py # also separately exclude a file named foo.py in
# the root of the project
)
'''
[tool.interrogate]
ignore-init-method = true
ignore-init-module = false
ignore-magic = false
ignore-semiprivate = false
ignore-private = false
ignore-property-decorators = false
ignore-module = false
fail-under = 100
exclude = ["setup.py", "docs", "build", "examples"]
ignore-regex = ["^get$", "^mock_.*", ".*BaseClass.*"]
verbose = 2
quiet = false
whitelist-regex = []
color = true
[tool.pytest.ini_options]
addopts = "-v --cov --cov-report term-missing -m 'not llm_eval' --durations=10"
testpaths = [
"tests",
]
norecursedirs = ["archive/*"]
[tool.isort]
profile = "black"
float-to-top = true
[tool.setuptools]
include-package-data = true
[tool.setuptools.packages.find]
where = ["."]
namespaces = false
[project]
name = "llamabot"
version = "0.11.2"
# Runtime dependencies below
dependencies = [
"openai",
"loguru",
"python-dotenv",
"typer",
"pyprojroot",
"beautifulsoup4",
"litellm>=1.59.1", # this is necessary to guarantee that ollama_chat models are supported for structured outputs
"python-slugify",
"pydantic>=2.0",
"numpy", # https://github.com/ericmjl/llamabot/issues/56
"jinja2",
"fastapi>=0.104.0", # This version requires Python >=3.8
"uvicorn",
"tenacity",
"python-multipart",
"httpx",
"tqdm",
"sqlalchemy",
"pdfminer.six",
]
requires-python = ">=3.9,<3.13"
description = "A Pythonic interface to LLMs."
readme = "README.md"
[project.urls]
"Documentation" = "https://ericmjl.github.io/llamabot"
"Source Code" = "https://github.com/ericmjl/llamabot"
[project.scripts]
llamabot = "llamabot.cli:app"
[project.optional-dependencies]
notebooks = [
"ics",
"tzlocal",
"chonkie[all]>=0.2.2,<0.3"
]
ui = [
"panel",
"jupyter_bokeh",
"bokeh"
]
rag = [
"lancedb",
"chromadb",
"tantivy",
"rank-bm25",
]
agent = [
"docker",
"duckduckgo-search",
"markdownify",
]
cli = [
"pyzotero",
"nbformat",
"python-frontmatter",
"rich",
"gitpython",
"prompt-toolkit",
"case-converter",
"pyperclip",
"astor",
]
all = [
"llamabot[notebooks,ui,rag,agent,cli]"
]
[dependency-groups]
notebooks = ["ollama>=0.4.4,<0.5"]
ui = []
agent = []
cli = []
[tool.pixi.project]
name = "llamabot"
description = "A Pythonic interface to LLMs"
channels = ["conda-forge"]
platforms = ["osx-arm64", "linux-64", "osx-64", "linux-aarch64"]
[tool.pixi.pypi-dependencies]
llamabot = { path = ".", editable = true }
[tool.pixi.feature.tests.dependencies]
pytest = "*"
hypothesis = "*"
pytest-cov = "*"
pytest-mock = "*"
tuna = "*"
[tool.pixi.feature.devtools.dependencies]
pre-commit = "*"
ipython = "*"
bump2version = "*"
[tool.pixi.feature.docs.dependencies]
mkdocs = "*"
mkdocs-material = "*"
mknotebooks = "*"
# Stuff that is referenced _only_ in notebooks go here.
[tool.pixi.feature.notebooks.dependencies]
jupyter = "*"
ipykernel = "*"
jupyterlab = "*"
pixi-kernel = "*"
biopython = "*"
lxml = ">=5.3.0,<6"
hvplot = ">=0.11.1,<0.12"
pip = ">=24.3.1,<25"
selenium = ">=4.11.2,<5"
python-chromedriver-binary = ">=133.0.6882.0.0,<134"
[tool.pixi.feature.notebooks.pypi-dependencies]
pdf2image = "*"
# TASKS BELOW!
[tool.pixi.tasks]
llamabot-cli = "llamabot --help"
[tool.pixi.feature.notebooks.tasks]
jlab = "jupyter lab"
[tool.pixi.feature.tests.tasks]
test = "pytest"
[tool.pixi.feature.docs.tasks]
docs = "mkdocs serve"
build-docs = "mkdocs build"
[tool.pixi.environments]
default = ["tests", "devtools", "docs", "notebooks", "ui", "rag", "agent", "cli"]
docs = ["docs"]
notebooks = ["notebooks"] # for those who just want to run notebooks
bare = ["devtools"]
[tool.pixi.dependencies]
python-multipart = "*"
numpydoc = ">=1.8.0,<2"