Skip to content

Commit 65190a7

Browse files
ivanleomkclaude[bot]jxnl
authored
fix: expose exception classes in public API (#1613)
Co-authored-by: claude[bot] <209825114+claude[bot]@users.noreply.github.com> Co-authored-by: Jason Liu <jxnl@users.noreply.github.com>
1 parent cac233a commit 65190a7

File tree

3 files changed

+444
-94
lines changed

3 files changed

+444
-94
lines changed

pyproject.toml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -59,16 +59,17 @@ dev = [
5959
"pytest-examples>=0.0.15",
6060
]
6161
docs = [
62-
"mkdocs<2.0.0,>=1.4.3",
62+
"mkdocs<2.0.0,>=1.6.1",
6363
"mkdocs-material[imaging]<10.0.0,>=9.5.9",
64-
"mkdocstrings>=0.26.1,<0.30.0",
65-
"mkdocstrings-python<2.0.0,>=1.11.1",
64+
"mkdocstrings>=0.27.1,<0.30.0",
65+
"mkdocstrings-python<2.0.0,>=1.12.2",
6666
"pytest-examples>=0.0.15",
6767
"mkdocs-jupyter<0.26.0,>=0.24.6",
6868
"mkdocs-rss-plugin<2.0.0,>=1.12.0",
6969
"mkdocs-minify-plugin<1.0.0,>=0.8.0",
7070
"mkdocs-redirects<2.0.0,>=1.2.1",
71-
"material>=0.1",
71+
"mkdocs-material-extensions>=1.3.1",
72+
"mkdocs-material>=9.6.14",
7273
]
7374
test-docs = [
7475
"fastapi<0.116.0,>=0.109.2",
@@ -125,6 +126,7 @@ docs = [
125126
"mkdocs-rss-plugin<2.0.0,>=1.12.0",
126127
"mkdocs-minify-plugin<1.0.0,>=0.8.0",
127128
"mkdocs-redirects<2.0.0,>=1.2.1",
129+
"mkdocs-material-extensions>=1.3.1",
128130
"material>=0.1",
129131
"cairosvg>=2.7.1",
130132
"pillow>=10.4.0",
@@ -167,7 +169,8 @@ cohere = ["cohere<6.0.0,>=5.1.8"]
167169
cerebras_cloud_sdk = ["cerebras-cloud-sdk<2.0.0,>=1.5.0"]
168170
fireworks-ai = ["fireworks-ai<1.0.0,>=0.15.4"]
169171
writer = ["writer-sdk<3.0.0,>=2.2.0"]
170-
google-genai=["google-genai>=1.5.0","jsonref<2.0.0,>=1.1.0",]
172+
173+
google-genai = ["google-genai>=1.5.0","jsonref<2.0.0,>=1.1.0"]
171174
examples = [
172175
"cohere>=5.13.4",
173176
"datasets>=3.2.0",

requirements.txt

Lines changed: 214 additions & 89 deletions
Original file line numberDiff line numberDiff line change
@@ -1,102 +1,227 @@
1-
# This file was autogenerated by uv via the following command:
2-
# uv pip compile pyproject.toml -o requirements.txt
3-
aiohappyeyeballs==2.6.1
4-
# via aiohttp
5-
aiohttp==3.12.12
6-
# via instructor (pyproject.toml)
1+
aiohappyeyeballs==2.4.4
2+
aiohttp==3.11.11
73
aiosignal==1.3.2
8-
# via aiohttp
94
annotated-types==0.7.0
10-
# via pydantic
11-
anyio==4.9.0
12-
# via
13-
# httpx
14-
# openai
15-
attrs==25.3.0
16-
# via aiohttp
17-
certifi==2025.4.26
18-
# via
19-
# httpcore
20-
# httpx
21-
# requests
22-
charset-normalizer==3.4.2
23-
# via requests
5+
anthropic==0.53.0
6+
anyio==4.8.0
7+
appnope==0.1.4
8+
asttokens==3.0.0
9+
async-timeout==5.0.1
10+
attrs==24.3.0
11+
babel==2.16.0
12+
backrefs==5.8
13+
beautifulsoup4==4.12.3
14+
black==24.10.0
15+
bleach==6.2.0
16+
boto3==1.37.10
17+
botocore==1.37.10
18+
cachecontrol==0.14.1
19+
cachetools==5.5.0
20+
cairocffi==1.7.1
21+
cairosvg==2.7.1
22+
cerebras-cloud-sdk==1.15.0
23+
certifi==2024.12.14
24+
cffi==1.17.1
25+
charset-normalizer==3.4.1
2426
click==8.1.8
25-
# via typer
27+
cohere==5.13.4
28+
colorama==0.4.6
29+
comm==0.2.2
30+
courlan==1.3.2
31+
coverage==7.6.9
32+
csscompressor==0.9.5
33+
cssselect2==0.7.0
34+
datasets==3.2.0
35+
dateparser==1.2.0
36+
debugpy==1.8.11
37+
decorator==5.1.1
38+
defusedxml==0.7.1
39+
dill==0.3.8
40+
diskcache==5.6.3
2641
distro==1.9.0
27-
# via openai
2842
docstring-parser==0.16
29-
# via instructor (pyproject.toml)
30-
frozenlist==1.7.0
31-
# via
32-
# aiohttp
33-
# aiosignal
34-
h11==0.16.0
35-
# via httpcore
36-
httpcore==1.0.9
37-
# via httpx
43+
eval-type-backport==0.2.2
44+
exceptiongroup==1.2.2
45+
executing==2.1.0
46+
fastapi==0.115.6
47+
fastavro==1.10.0
48+
fastjsonschema==2.21.1
49+
filelock==3.16.1
50+
fireworks-ai==0.15.10
51+
frozenlist==1.5.0
52+
fsspec==2024.9.0
53+
ghp-import==2.1.0
54+
gitdb==4.0.11
55+
gitpython==3.1.43
56+
google-ai-generativelanguage==0.6.10
57+
google-api-core==2.24.0
58+
google-api-python-client==2.156.0
59+
google-auth==2.37.0
60+
google-auth-httplib2==0.2.0
61+
google-cloud-aiplatform==1.75.0
62+
google-cloud-bigquery==3.27.0
63+
google-cloud-core==2.4.1
64+
google-cloud-resource-manager==1.14.0
65+
google-cloud-storage==2.19.0
66+
google-crc32c==1.6.0
67+
google-genai==1.5.0
68+
google-generativeai==0.8.3
69+
google-resumable-media==2.7.2
70+
googleapis-common-protos==1.66.0
71+
graphviz==0.20.3
72+
griffe==1.5.1
73+
groq==0.13.1
74+
grpc-google-iam-v1==0.13.1
75+
grpcio==1.68.1
76+
grpcio-status==1.68.1
77+
h11==0.14.0
78+
htmldate==1.9.2
79+
htmlmin2==0.1.13
80+
httpcore==1.0.7
81+
httplib2==0.22.0
3882
httpx==0.28.1
39-
# via openai
83+
httpx-sse==0.4.0
84+
httpx-ws==0.7.0
85+
huggingface-hub==0.27.0
4086
idna==3.10
41-
# via
42-
# anyio
43-
# httpx
44-
# requests
45-
# yarl
46-
jinja2==3.1.6
47-
# via instructor (pyproject.toml)
48-
jiter==0.10.0
49-
# via
50-
# instructor (pyproject.toml)
51-
# openai
87+
importlib-metadata==8.5.0
88+
iniconfig==2.0.0
89+
-e file:///Users/ivanleo/Documents/coding/instructor
90+
ipykernel==6.29.5
91+
ipython==8.18.1
92+
jedi==0.19.2
93+
jinja2==3.1.5
94+
jiter==0.8.2
95+
jmespath==1.0.1
96+
jsmin==3.0.1
97+
jsonpath-python==1.0.6
98+
jsonref==1.1.0
99+
jsonschema==4.23.0
100+
jsonschema-specifications==2024.10.1
101+
jupyter-client==8.6.3
102+
jupyter-core==5.7.2
103+
jupyterlab-pygments==0.3.0
104+
jupytext==1.16.6
105+
justext==3.0.1
106+
litellm==1.53.3
107+
lxml==5.3.0
108+
lxml-html-clean==0.4.1
109+
markdown==3.7
52110
markdown-it-py==3.0.0
53-
# via rich
54111
markupsafe==3.0.2
55-
# via jinja2
112+
matplotlib-inline==0.1.7
113+
mdit-py-plugins==0.4.2
56114
mdurl==0.1.2
57-
# via markdown-it-py
58-
multidict==6.4.4
59-
# via
60-
# aiohttp
61-
# yarl
62-
openai==1.86.0
63-
# via instructor (pyproject.toml)
64-
propcache==0.3.2
65-
# via
66-
# aiohttp
67-
# yarl
68-
pydantic==2.11.5
69-
# via
70-
# instructor (pyproject.toml)
71-
# openai
72-
pygments==2.19.1
73-
# via rich
74-
requests==2.32.4
75-
# via instructor (pyproject.toml)
76-
rich==14.0.0
77-
# via
78-
# instructor (pyproject.toml)
79-
# typer
115+
mergedeep==1.3.4
116+
mistralai==1.5.1
117+
mistune==3.0.2
118+
mkdocs==1.6.1
119+
mkdocs-autorefs==1.4.2
120+
mkdocs-get-deps==0.2.0
121+
mkdocs-jupyter==0.25.1
122+
mkdocs-material==9.6.14
123+
mkdocs-material-extensions==1.3.1
124+
mkdocs-minify-plugin==0.8.0
125+
mkdocs-redirects==1.2.2
126+
mkdocs-rss-plugin==1.17.1
127+
mkdocstrings==0.29.1
128+
mkdocstrings-python==1.12.2
129+
msgpack==1.1.0
130+
multidict==6.1.0
131+
multiprocess==0.70.16
132+
mypy-extensions==1.0.0
133+
nbclient==0.10.2
134+
nbconvert==7.16.4
135+
nbformat==5.10.4
136+
nest-asyncio==1.6.0
137+
nodeenv==1.9.1
138+
numpy==2.0.2
139+
openai==1.82.0
140+
packaging==24.2
141+
paginate==0.5.7
142+
pandas==2.2.3
143+
pandocfilters==1.5.1
144+
parameterized==0.9.0
145+
parso==0.8.4
146+
pathspec==0.12.1
147+
pexpect==4.9.0
148+
phonenumbers==8.13.52
149+
pillow==10.4.0
150+
platformdirs==4.3.6
151+
pluggy==1.5.0
152+
prompt-toolkit==3.0.48
153+
propcache==0.2.1
154+
proto-plus==1.25.0
155+
protobuf==5.29.2
156+
psutil==6.1.1
157+
ptyprocess==0.7.0
158+
pure-eval==0.2.3
159+
pyarrow==18.1.0
160+
pyasn1==0.6.1
161+
pyasn1-modules==0.4.1
162+
pycparser==2.22
163+
pydantic==2.10.4
164+
pydantic-core==2.27.2
165+
pydantic-extra-types==2.10.1
166+
pydub==0.25.1
167+
pygments==2.18.0
168+
pymdown-extensions==10.13
169+
pyparsing==3.2.0
170+
pyright==1.1.391
171+
pytest==8.3.4
172+
pytest-asyncio==0.25.0
173+
pytest-examples==0.0.15
174+
python-dateutil==2.9.0.post0
175+
python-dotenv==1.0.1
176+
pytz==2024.2
177+
pyyaml==6.0.2
178+
pyyaml-env-tag==0.1
179+
pyzmq==26.2.0
180+
redis==5.2.1
181+
referencing==0.35.1
182+
regex==2024.11.6
183+
requests==2.32.3
184+
rich==13.9.4
185+
rpds-py==0.22.3
186+
rsa==4.9
187+
ruff==0.8.4
188+
s3transfer==0.11.4
189+
shapely==2.0.6
80190
shellingham==1.5.4
81-
# via typer
191+
six==1.17.0
192+
smmap==5.0.1
82193
sniffio==1.3.1
83-
# via
84-
# anyio
85-
# openai
86-
tenacity==9.1.2
87-
# via instructor (pyproject.toml)
194+
soupsieve==2.6
195+
sqlalchemy==2.0.36
196+
sqlmodel==0.0.22
197+
stack-data==0.6.3
198+
starlette==0.41.3
199+
tabulate==0.9.0
200+
tenacity==9.0.0
201+
tiktoken==0.8.0
202+
tinycss2==1.4.0
203+
tld==0.13
204+
tokenizers==0.21.0
205+
tomli==2.2.1
206+
tornado==6.4.2
88207
tqdm==4.67.1
89-
# via openai
90-
typer==0.16.0
91-
# via instructor (pyproject.toml)
92-
typing-extensions==4.13.2
93-
# via
94-
# anyio
95-
# openai
96-
# pydantic
97-
# pydantic-core
98-
# typer
99-
urllib3==2.4.0
100-
# via requests
101-
yarl==1.20.1
102-
# via aiohttp
208+
trafilatura==2.0.0
209+
traitlets==5.14.3
210+
typer==0.15.1
211+
types-requests==2.32.0.20241016
212+
typing-extensions==4.12.2
213+
typing-inspect==0.9.0
214+
tzdata==2024.2
215+
tzlocal==5.2
216+
uritemplate==4.1.1
217+
urllib3==2.3.0
218+
watchdog==6.0.0
219+
wcwidth==0.2.13
220+
webencodings==0.5.1
221+
websockets==14.2
222+
writer-sdk==2.2.0
223+
wsproto==1.2.0
224+
xmltodict==0.14.2
225+
xxhash==3.5.0
226+
yarl==1.18.3
227+
zipp==3.21.0

0 commit comments

Comments
 (0)