exstruct 0.2.60__tar.gz → 0.2.62__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {exstruct-0.2.60 → exstruct-0.2.62}/PKG-INFO +2 -3
- {exstruct-0.2.60 → exstruct-0.2.62}/README.md +1 -1
- {exstruct-0.2.60 → exstruct-0.2.62}/pyproject.toml +119 -112
- {exstruct-0.2.60 → exstruct-0.2.62}/src/exstruct/__init__.py +387 -265
- {exstruct-0.2.60 → exstruct-0.2.62}/src/exstruct/cli/main.py +97 -97
- {exstruct-0.2.60 → exstruct-0.2.62}/src/exstruct/core/integrate.py +388 -386
- {exstruct-0.2.60 → exstruct-0.2.62}/src/exstruct/engine.py +638 -553
- exstruct-0.2.62/src/exstruct/errors.py +35 -0
- {exstruct-0.2.60 → exstruct-0.2.62}/src/exstruct/io/__init__.py +555 -530
- {exstruct-0.2.60 → exstruct-0.2.62}/src/exstruct/models/__init__.py +162 -102
- exstruct-0.2.62/src/exstruct/render/__init__.py +118 -0
- exstruct-0.2.60/src/exstruct/render/__init__.py +0 -92
- {exstruct-0.2.60 → exstruct-0.2.62}/LICENSE +0 -0
- {exstruct-0.2.60 → exstruct-0.2.62}/src/exstruct/core/__init__.py +0 -0
- {exstruct-0.2.60 → exstruct-0.2.62}/src/exstruct/core/cells.py +0 -0
- {exstruct-0.2.60 → exstruct-0.2.62}/src/exstruct/core/charts.py +0 -0
- {exstruct-0.2.60 → exstruct-0.2.62}/src/exstruct/core/shapes.py +0 -0
- {exstruct-0.2.60 → exstruct-0.2.62}/src/exstruct/models/maps.py +0 -0
- {exstruct-0.2.60 → exstruct-0.2.62}/src/exstruct/models/types.py +0 -0
- {exstruct-0.2.60 → exstruct-0.2.62}/src/exstruct/py.typed +0 -0
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: exstruct
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.62
|
|
4
4
|
Summary: Excel to structured JSON (tables, shapes, charts) for LLM/RAG pipelines
|
|
5
5
|
Keywords: excel,structure,data,exstruct
|
|
6
6
|
Author: harumiWeb
|
|
7
|
-
Author-email: harumiWeb <ganaharumi@outlook.jp>
|
|
8
7
|
License: BSD 3-Clause License
|
|
9
8
|
|
|
10
9
|
Copyright (c) 2025, ExStruct Contributors
|
|
@@ -56,7 +55,7 @@ Description-Content-Type: text/markdown
|
|
|
56
55
|
|
|
57
56
|
# ExStruct — Excel Structured Extraction Engine
|
|
58
57
|
|
|
59
|
-
[](https://pypi.org/project/exstruct/) [](https://pepy.tech/projects/exstruct)  [](https://github.com/harumiWeb/exstruct/actions/workflows/pytest.yml)
|
|
58
|
+
[](https://pypi.org/project/exstruct/) [](https://pepy.tech/projects/exstruct)  [](https://github.com/harumiWeb/exstruct/actions/workflows/pytest.yml) [](https://app.codacy.com/gh/harumiWeb/exstruct/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_grade)
|
|
60
59
|
|
|
61
60
|

|
|
62
61
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# ExStruct — Excel Structured Extraction Engine
|
|
2
2
|
|
|
3
|
-
[](https://pypi.org/project/exstruct/) [](https://pepy.tech/projects/exstruct)  [](https://github.com/harumiWeb/exstruct/actions/workflows/pytest.yml)
|
|
3
|
+
[](https://pypi.org/project/exstruct/) [](https://pepy.tech/projects/exstruct)  [](https://github.com/harumiWeb/exstruct/actions/workflows/pytest.yml) [](https://app.codacy.com/gh/harumiWeb/exstruct/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_grade)
|
|
4
4
|
|
|
5
5
|

|
|
6
6
|
|
|
@@ -1,112 +1,119 @@
|
|
|
1
|
-
[project]
|
|
2
|
-
name = "exstruct"
|
|
3
|
-
version = "0.2.
|
|
4
|
-
description = "Excel to structured JSON (tables, shapes, charts) for LLM/RAG pipelines"
|
|
5
|
-
readme = "README.md"
|
|
6
|
-
license = { file = "LICENSE" }
|
|
7
|
-
keywords = ["excel", "structure", "data", "exstruct"]
|
|
8
|
-
authors = [
|
|
9
|
-
{ name = "harumiWeb"
|
|
10
|
-
]
|
|
11
|
-
requires-python = ">=3.11"
|
|
12
|
-
dependencies = [
|
|
13
|
-
"numpy>=2.3.5",
|
|
14
|
-
"openpyxl>=3.1.5",
|
|
15
|
-
"pandas>=2.3.3",
|
|
16
|
-
"pydantic>=2.12.5",
|
|
17
|
-
"scipy>=1.16.3",
|
|
18
|
-
"xlwings>=0.33.16",
|
|
19
|
-
]
|
|
20
|
-
|
|
21
|
-
[build-system]
|
|
22
|
-
requires = ["uv_build>=0.8.4,<0.9.0"]
|
|
23
|
-
build-backend = "uv_build"
|
|
24
|
-
|
|
25
|
-
[dependency-groups]
|
|
26
|
-
dev = [
|
|
27
|
-
"mkdocs-material>=9.7.0",
|
|
28
|
-
"
|
|
29
|
-
"
|
|
30
|
-
"
|
|
31
|
-
"pytest
|
|
32
|
-
"pytest-
|
|
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
|
-
|
|
1
|
+
[project]
|
|
2
|
+
name = "exstruct"
|
|
3
|
+
version = "0.2.62"
|
|
4
|
+
description = "Excel to structured JSON (tables, shapes, charts) for LLM/RAG pipelines"
|
|
5
|
+
readme = "README.md"
|
|
6
|
+
license = { file = "LICENSE" }
|
|
7
|
+
keywords = ["excel", "structure", "data", "exstruct"]
|
|
8
|
+
authors = [
|
|
9
|
+
{ name = "harumiWeb"}
|
|
10
|
+
]
|
|
11
|
+
requires-python = ">=3.11"
|
|
12
|
+
dependencies = [
|
|
13
|
+
"numpy>=2.3.5",
|
|
14
|
+
"openpyxl>=3.1.5",
|
|
15
|
+
"pandas>=2.3.3",
|
|
16
|
+
"pydantic>=2.12.5",
|
|
17
|
+
"scipy>=1.16.3",
|
|
18
|
+
"xlwings>=0.33.16",
|
|
19
|
+
]
|
|
20
|
+
|
|
21
|
+
[build-system]
|
|
22
|
+
requires = ["uv_build>=0.8.4,<0.9.0"]
|
|
23
|
+
build-backend = "uv_build"
|
|
24
|
+
|
|
25
|
+
[dependency-groups]
|
|
26
|
+
dev = [
|
|
27
|
+
"mkdocs-material>=9.7.0",
|
|
28
|
+
"mkdocstrings-python>=2.0.1",
|
|
29
|
+
"mypy>=1.19.0",
|
|
30
|
+
"pre-commit>=4.5.0",
|
|
31
|
+
"pytest>=9.0.1",
|
|
32
|
+
"pytest-cov>=7.0.0",
|
|
33
|
+
"pytest-mock>=3.15.1",
|
|
34
|
+
"ruff>=0.14.8",
|
|
35
|
+
]
|
|
36
|
+
|
|
37
|
+
[project.optional-dependencies]
|
|
38
|
+
yaml = ["pyyaml>=6.0.3"]
|
|
39
|
+
toon = ["python-toon>=0.1.3"]
|
|
40
|
+
render = ["pypdfium2>=5.1.0", "Pillow>=12.0.0"]
|
|
41
|
+
|
|
42
|
+
[project.scripts]
|
|
43
|
+
exstruct = "exstruct.cli.main:main"
|
|
44
|
+
|
|
45
|
+
[project.urls]
|
|
46
|
+
Homepage = "https://harumiweb.github.io/exstruct/"
|
|
47
|
+
Repository = "https://github.com/harumiWeb/exstruct"
|
|
48
|
+
Issues = "https://github.com/harumiWeb/exstruct/issues"
|
|
49
|
+
Documentation = "https://harumiweb.github.io/exstruct/"
|
|
50
|
+
|
|
51
|
+
[tool.coverage.run]
|
|
52
|
+
omit = [
|
|
53
|
+
"tests/*",
|
|
54
|
+
"*/test_*.py",
|
|
55
|
+
"*/gen_py/*",
|
|
56
|
+
]
|
|
57
|
+
|
|
58
|
+
[tool.ruff]
|
|
59
|
+
target-version = "py311"
|
|
60
|
+
src = ["exstruct"]
|
|
61
|
+
|
|
62
|
+
select = [
|
|
63
|
+
"E", # pycodestyle errors
|
|
64
|
+
"W", # pycodestyle warnings
|
|
65
|
+
"F", # pyflakes
|
|
66
|
+
"I", # import sorting
|
|
67
|
+
"UP", # pyupgrade
|
|
68
|
+
"B", # flake8-bugbear
|
|
69
|
+
"N", # naming
|
|
70
|
+
"C90", # complexity
|
|
71
|
+
"A", # flake8-builtins
|
|
72
|
+
"ANN", # type annotations
|
|
73
|
+
]
|
|
74
|
+
|
|
75
|
+
ignore = [
|
|
76
|
+
"E501", # 行長は許容(Excel JSON は長くなりがち)
|
|
77
|
+
"B008", # Pydantic の default_factory を誤検知するため
|
|
78
|
+
"ANN101", # self に型を要求されてしまうため
|
|
79
|
+
"ANN102", # cls も同様
|
|
80
|
+
]
|
|
81
|
+
|
|
82
|
+
fix = true
|
|
83
|
+
|
|
84
|
+
# 型ヒントのスタイル
|
|
85
|
+
[tool.ruff.lint]
|
|
86
|
+
extend-select = ["ANN"]
|
|
87
|
+
|
|
88
|
+
# import の並び替え設定
|
|
89
|
+
[tool.ruff.isort]
|
|
90
|
+
combine-as-imports = true
|
|
91
|
+
known-first-party = ["exstruct"]
|
|
92
|
+
force-sort-within-sections = true
|
|
93
|
+
|
|
94
|
+
# 複雑度チェック(関数の最大複雑度)
|
|
95
|
+
[tool.ruff.mccabe]
|
|
96
|
+
max-complexity = 12
|
|
97
|
+
|
|
98
|
+
[tool.ruff.per-file-ignores]
|
|
99
|
+
"tests/**/*.py" = ["N802", "N803", "N806"]
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
[tool.mypy]
|
|
103
|
+
packages = ["exstruct"]
|
|
104
|
+
python_version = "3.11"
|
|
105
|
+
|
|
106
|
+
# 外部ライブラリは一切チェックしない
|
|
107
|
+
ignore_missing_imports = true
|
|
108
|
+
|
|
109
|
+
# 自作コードは厳密にチェックする
|
|
110
|
+
strict = true
|
|
111
|
+
|
|
112
|
+
# Pydantic v2 向け
|
|
113
|
+
plugins = ["pydantic.mypy"]
|
|
114
|
+
|
|
115
|
+
[tool.pytest.ini_options]
|
|
116
|
+
markers = [
|
|
117
|
+
"com: requires Excel COM (Windows + Excel)",
|
|
118
|
+
"render: requires Excel COM and pypdfium2; set RUN_RENDER_SMOKE=1 to enable",
|
|
119
|
+
]
|