-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathpyproject.toml
More file actions
108 lines (98 loc) · 3.04 KB
/
pyproject.toml
File metadata and controls
108 lines (98 loc) · 3.04 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
[project]
name = "langstruct"
version = "0.2.0"
description = "LLM-powered structured information extraction using DSPy optimization"
readme = "README.md"
license = "MIT"
requires-python = ">=3.12"
authors = [{ name = "LangStruct Team" }]
keywords = ["llm", "nlp", "extraction", "dspy", "structured-data"]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.12",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Topic :: Software Development :: Libraries :: Python Modules",
]
dependencies = [
"dspy>=3.0.0",
"pydantic>=2.0.0",
"tiktoken>=0.5.0",
"typing-extensions>=4.8.0",
]
[project.urls]
Homepage = "https://langstruct.dev"
Documentation = "https://langstruct.dev"
Repository = "https://github.com/langstruct-ai/langstruct"
Issues = "https://github.com/langstruct-ai/langstruct/issues"
Changelog = "https://github.com/langstruct-ai/langstruct/blob/main/CHANGELOG.md"
[project.optional-dependencies]
dev = [
"pytest>=7.0.0",
"pytest-cov>=4.0.0",
"black>=23.0.0",
"isort>=5.12.0",
"mypy>=1.5.0",
"pre-commit>=3.0.0",
]
examples = [
# Dependencies needed to run example scripts
"chromadb>=0.4.0", # For RAG integration example
"langchain-community>=0.0.10", # For RAG integration example
"langchain-text-splitters>=0.0.1", # For text chunking in examples
"openai>=1.0.0", # For embeddings in RAG example
]
parallel = [
"tqdm>=4.66.0", # For progress bars in parallel processing
]
all = ["langstruct[dev,examples,parallel]"]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.black]
line-length = 88
target-version = ['py312']
[tool.isort]
profile = "black"
line_length = 88
[tool.mypy]
python_version = "3.12"
# Use strict mode for core logic, but allow flexibility for external integrations
strict = false
warn_return_any = false
warn_unused_configs = true
disallow_untyped_defs = true
disallow_any_generics = true
disallow_subclassing_any = false
no_implicit_optional = true
# Ignore untyped external dependencies
[[tool.mypy.overrides]]
module = ["dspy.*"]
ignore_missing_imports = true
# Strict typing for core business logic modules
[[tool.mypy.overrides]]
module = ["langstruct.core.schemas", "langstruct.core.export_utils"]
strict = true
# Lenient checking for DSPy integration modules
[[tool.mypy.overrides]]
module = [
"langstruct.core.signatures",
"langstruct.core.modules",
"langstruct.core.schema_generator",
"langstruct.core.validation",
"langstruct.core.chunking",
"langstruct.optimizers.*",
"langstruct.providers.*",
"langstruct.api",
]
# Allow necessary flexibility for external library integration
disallow_untyped_defs = false
disallow_any_expr = false
disallow_any_decorated = false
disallow_any_explicit = false
disallow_any_generics = false
disallow_subclassing_any = false
warn_return_any = false
check_untyped_defs = false