instructor

Форк
0
/
pyproject.toml 
102 строки · 2.7 Кб
1
[tool.poetry]
2
name = "instructor"
3
version = "1.2.6"
4
description = "structured outputs for llm"
5
authors = ["Jason Liu <jason@jxnl.co>"]
6
license = "MIT"
7
readme = "README.md"
8
packages = [{include = "instructor"}]
9
repository = "https://github.com/jxnl/instructor"
10

11
[tool.poetry.dependencies]
12
python = "^3.9"
13
openai = "^1.1.0"
14
pydantic = "^2.7.0"
15
docstring-parser = "^0.16"
16
typer = ">=0.9.0,<1.0.0"
17
rich = "^13.7.0"
18
aiohttp = "^3.9.1"
19
tenacity = "^8.2.3"
20
pydantic-core = "^2.18.0"
21

22
# dependency versions for extras
23
fastapi = { version = "^0.109.2", optional = true }
24
redis = { version = "^5.0.1", optional = true }
25
diskcache = { version = "^5.6.3", optional = true }
26
pandas = { version = "^2.2.0", optional = true }
27
tabulate = { version = "^0.9.0", optional = true }
28
pydantic_extra_types = { version = "^2.6.0", optional = true }
29
litellm = { version = "^1.35.31", optional = true }
30
anthropic = { version = "^0.23.1", optional = true }
31
xmltodict = { version = "^0.13.0", optional = true }
32
groq = { version = "^0.4.2", optional = true }
33
cohere = { version = "^5.1.8", optional = true }
34
mistralai = { version = "^0.1.8", optional = true }
35

36
[tool.poetry.extras]
37
anthropic = ["anthropic", "xmltodict"]
38
groq = ["groq"]
39
cohere = ["cohere"]
40
test-docs = ["fastapi", "redis", "diskcache", "pandas", "tabulate", "pydantic_extra_types", "litellm", "anthropic", "groq", "cohere", "mistralai"]
41
mistralai = ["mistralai"]
42
litellm = ["litellm"]
43

44
[tool.poetry.scripts]
45
instructor = "instructor.cli.cli:app"
46

47
[tool.poetry.group.dev.dependencies]
48
pytest = "^7.4.0"
49
pytest-asyncio = "^0.21.1"
50
coverage = "^7.3.2"
51
pyright = "^1.1.360"
52

53
[tool.poetry.group.docs.dependencies]
54
mkdocs = "^1.4.3"
55
mkdocs-material = {extras = ["imaging"], version = "^9.5.9"}
56
mkdocstrings = "^0.22.0"
57
mkdocstrings-python = "^1.1.2"
58
pytest-examples = "^0.0.10"
59
mkdocs-jupyter = "^0.24.6"
60
mkdocs-rss-plugin = "^1.12.0"
61
mkdocs-minify-plugin = "^0.8.0"
62
mkdocs-redirects = "^1.2.1"
63

64
[tool.poetry.group.anthropic.dependencies]
65
anthropic = "^0.23.1"
66

67
[tool.poetry.group.test-docs.dependencies]
68
fastapi = "^0.109.2"
69
redis = "^5.0.1"
70
diskcache = "^5.6.3"
71
pandas = "^2.2.0"
72
tabulate = "^0.9.0"
73
pydantic_extra_types = "^2.6.0"
74
litellm = "^1.35.31"
75
anthropic = "^0.23.1"
76
xmltodict = "^0.13.0"
77
groq = "^0.4.2"
78
phonenumbers = "^8.13.33"
79
cohere = "^5.1.8"
80
mistralai = "^0.1.8"
81

82
[tool.poetry.group.litellm.dependencies]
83
litellm = "^1.35.31"
84

85
[build-system]
86
requires = ["poetry-core"]
87
build-backend = "poetry.core.masonry.api"
88

89
[tool.pyright]
90
include = ["instructor"]
91
exclude = [
92
    "**/node_modules",
93
    "**/__pycache__",
94
    "src/experimental",
95
    "src/typestubs",
96
    "**/tests/**",
97
]
98
pythonVersion = "3.9"
99
typeCheckingMode = "strict"
100
# Allow "redundant" runtime type-checking.
101
reportUnnecessaryIsInstance = "none"
102
reportUnnecessaryTypeIgnoreComment = "error"
103

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.