instructor
/
pyproject.toml
102 строки · 2.7 Кб
1[tool.poetry]
2name = "instructor"
3version = "1.2.6"
4description = "structured outputs for llm"
5authors = ["Jason Liu <jason@jxnl.co>"]
6license = "MIT"
7readme = "README.md"
8packages = [{include = "instructor"}]
9repository = "https://github.com/jxnl/instructor"
10
11[tool.poetry.dependencies]
12python = "^3.9"
13openai = "^1.1.0"
14pydantic = "^2.7.0"
15docstring-parser = "^0.16"
16typer = ">=0.9.0,<1.0.0"
17rich = "^13.7.0"
18aiohttp = "^3.9.1"
19tenacity = "^8.2.3"
20pydantic-core = "^2.18.0"
21
22# dependency versions for extras
23fastapi = { version = "^0.109.2", optional = true }
24redis = { version = "^5.0.1", optional = true }
25diskcache = { version = "^5.6.3", optional = true }
26pandas = { version = "^2.2.0", optional = true }
27tabulate = { version = "^0.9.0", optional = true }
28pydantic_extra_types = { version = "^2.6.0", optional = true }
29litellm = { version = "^1.35.31", optional = true }
30anthropic = { version = "^0.23.1", optional = true }
31xmltodict = { version = "^0.13.0", optional = true }
32groq = { version = "^0.4.2", optional = true }
33cohere = { version = "^5.1.8", optional = true }
34mistralai = { version = "^0.1.8", optional = true }
35
36[tool.poetry.extras]
37anthropic = ["anthropic", "xmltodict"]
38groq = ["groq"]
39cohere = ["cohere"]
40test-docs = ["fastapi", "redis", "diskcache", "pandas", "tabulate", "pydantic_extra_types", "litellm", "anthropic", "groq", "cohere", "mistralai"]
41mistralai = ["mistralai"]
42litellm = ["litellm"]
43
44[tool.poetry.scripts]
45instructor = "instructor.cli.cli:app"
46
47[tool.poetry.group.dev.dependencies]
48pytest = "^7.4.0"
49pytest-asyncio = "^0.21.1"
50coverage = "^7.3.2"
51pyright = "^1.1.360"
52
53[tool.poetry.group.docs.dependencies]
54mkdocs = "^1.4.3"
55mkdocs-material = {extras = ["imaging"], version = "^9.5.9"}
56mkdocstrings = "^0.22.0"
57mkdocstrings-python = "^1.1.2"
58pytest-examples = "^0.0.10"
59mkdocs-jupyter = "^0.24.6"
60mkdocs-rss-plugin = "^1.12.0"
61mkdocs-minify-plugin = "^0.8.0"
62mkdocs-redirects = "^1.2.1"
63
64[tool.poetry.group.anthropic.dependencies]
65anthropic = "^0.23.1"
66
67[tool.poetry.group.test-docs.dependencies]
68fastapi = "^0.109.2"
69redis = "^5.0.1"
70diskcache = "^5.6.3"
71pandas = "^2.2.0"
72tabulate = "^0.9.0"
73pydantic_extra_types = "^2.6.0"
74litellm = "^1.35.31"
75anthropic = "^0.23.1"
76xmltodict = "^0.13.0"
77groq = "^0.4.2"
78phonenumbers = "^8.13.33"
79cohere = "^5.1.8"
80mistralai = "^0.1.8"
81
82[tool.poetry.group.litellm.dependencies]
83litellm = "^1.35.31"
84
85[build-system]
86requires = ["poetry-core"]
87build-backend = "poetry.core.masonry.api"
88
89[tool.pyright]
90include = ["instructor"]
91exclude = [
92"**/node_modules",
93"**/__pycache__",
94"src/experimental",
95"src/typestubs",
96"**/tests/**",
97]
98pythonVersion = "3.9"
99typeCheckingMode = "strict"
100# Allow "redundant" runtime type-checking.
101reportUnnecessaryIsInstance = "none"
102reportUnnecessaryTypeIgnoreComment = "error"
103