-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
112 lines (102 loc) · 2.88 KB
/
Copy pathpyproject.toml
File metadata and controls
112 lines (102 loc) · 2.88 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
109
110
111
112
# Copyright 2025 Google LLC.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
[build-system]
requires = ["setuptools>=67.0.0", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "langextract"
version = "1.0.5"
description = "LangExtract: A library for extracting structured data from language models"
readme = "README.md"
requires-python = ">=3.10"
license = "Apache-2.0"
authors = [
{name = "Akshay Goel", email = "goelak@google.com"}
]
dependencies = [
"absl-py>=1.0.0",
"aiohttp>=3.8.0",
"async_timeout>=4.0.0",
"exceptiongroup>=1.1.0",
"google-genai>=0.1.0",
"ml-collections>=0.1.0",
"more-itertools>=8.0.0",
"numpy>=1.20.0",
"pandas>=1.3.0",
"pydantic>=1.8.0",
"python-dotenv>=0.19.0",
"PyYAML>=6.0",
"requests>=2.25.0",
"tqdm>=4.64.0",
"typing-extensions>=4.0.0"
]
[project.urls]
"Homepage" = "https://github.com/google/langextract"
"Repository" = "https://github.com/google/langextract"
"Documentation" = "https://github.com/google/langextract/blob/main/README.md"
"Bug Tracker" = "https://github.com/google/langextract/issues"
[project.optional-dependencies]
openai = ["openai>=1.50.0"]
all = ["openai>=1.50.0"]
dev = [
"pyink~=24.3.0",
"isort>=5.13.0",
"pylint>=3.0.0",
"pytype>=2024.10.11",
"tox>=4.0.0"
]
test = [
"pytest>=7.4.0",
"tomli>=2.0.0"
]
notebook = [
"ipython>=7.0.0",
"notebook>=6.0.0"
]
[tool.setuptools]
packages = ["langextract", "langextract.providers"]
include-package-data = false
[tool.setuptools.exclude-package-data]
"*" = [
"docs*",
"tests*",
"kokoro*",
"*.gif",
"*.svg",
]
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = "*_test.py"
python_classes = "Test*"
python_functions = "test_*"
# Show extra test summary info
addopts = "-ra"
markers = [
"live_api: marks tests as requiring live API access",
"requires_pip: marks tests that perform pip install/uninstall operations",
"integration: marks integration tests that test multiple components together",
]
[tool.pyink]
# Configuration for Google's style guide
line-length = 80
unstable = true
pyink-indentation = 2
pyink-use-majority-quotes = true
[tool.isort]
# Configuration for Google's style guide
profile = "google"
line_length = 80
force_sort_within_sections = true
# Allow multiple imports on one line for these modules
single_line_exclusions = ["typing", "typing_extensions", "collections.abc"]