structx 0.5.0__tar.gz → 0.5.1__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.
Files changed (43) hide show
  1. {structx-0.5.0/structx.egg-info → structx-0.5.1}/PKG-INFO +27 -27
  2. {structx-0.5.0 → structx-0.5.1}/README.md +1 -1
  3. {structx-0.5.0 → structx-0.5.1}/pyproject.toml +29 -23
  4. {structx-0.5.0 → structx-0.5.1}/structx/__init__.py +1 -1
  5. {structx-0.5.0 → structx-0.5.1/structx.egg-info}/PKG-INFO +27 -27
  6. structx-0.5.1/structx.egg-info/requires.txt +31 -0
  7. structx-0.5.0/structx.egg-info/requires.txt +0 -31
  8. {structx-0.5.0 → structx-0.5.1}/LICENSE +0 -0
  9. {structx-0.5.0 → structx-0.5.1}/setup.cfg +0 -0
  10. {structx-0.5.0 → structx-0.5.1}/structx/core/__init__.py +0 -0
  11. {structx-0.5.0 → structx-0.5.1}/structx/core/config.py +0 -0
  12. {structx-0.5.0 → structx-0.5.1}/structx/core/exceptions.py +0 -0
  13. {structx-0.5.0 → structx-0.5.1}/structx/core/models.py +0 -0
  14. {structx-0.5.0 → structx-0.5.1}/structx/extraction/__init__.py +0 -0
  15. {structx-0.5.0 → structx-0.5.1}/structx/extraction/core/__init__.py +0 -0
  16. {structx-0.5.0 → structx-0.5.1}/structx/extraction/core/llm_core.py +0 -0
  17. {structx-0.5.0 → structx-0.5.1}/structx/extraction/core/model_utils.py +0 -0
  18. {structx-0.5.0 → structx-0.5.1}/structx/extraction/engines/__init__.py +0 -0
  19. {structx-0.5.0 → structx-0.5.1}/structx/extraction/engines/extraction_engine.py +0 -0
  20. {structx-0.5.0 → structx-0.5.1}/structx/extraction/extractor.py +0 -0
  21. {structx-0.5.0 → structx-0.5.1}/structx/extraction/generator.py +0 -0
  22. {structx-0.5.0 → structx-0.5.1}/structx/extraction/processors/__init__.py +0 -0
  23. {structx-0.5.0 → structx-0.5.1}/structx/extraction/processors/content_analyzer.py +0 -0
  24. {structx-0.5.0 → structx-0.5.1}/structx/extraction/processors/data_processor.py +0 -0
  25. {structx-0.5.0 → structx-0.5.1}/structx/extraction/processors/model_operations.py +0 -0
  26. {structx-0.5.0 → structx-0.5.1}/structx/extraction/result_manager.py +0 -0
  27. {structx-0.5.0 → structx-0.5.1}/structx/utils/__init__.py +0 -0
  28. {structx-0.5.0 → structx-0.5.1}/structx/utils/constants.py +0 -0
  29. {structx-0.5.0 → structx-0.5.1}/structx/utils/file_reader.py +0 -0
  30. {structx-0.5.0 → structx-0.5.1}/structx/utils/helpers.py +0 -0
  31. {structx-0.5.0 → structx-0.5.1}/structx/utils/prompts.py +0 -0
  32. {structx-0.5.0 → structx-0.5.1}/structx/utils/types.py +0 -0
  33. {structx-0.5.0 → structx-0.5.1}/structx/utils/usage.py +0 -0
  34. {structx-0.5.0 → structx-0.5.1}/structx.egg-info/SOURCES.txt +0 -0
  35. {structx-0.5.0 → structx-0.5.1}/structx.egg-info/dependency_links.txt +0 -0
  36. {structx-0.5.0 → structx-0.5.1}/structx.egg-info/top_level.txt +0 -0
  37. {structx-0.5.0 → structx-0.5.1}/tests/test_config_and_model_utils.py +0 -0
  38. {structx-0.5.0 → structx-0.5.1}/tests/test_content_analyzer.py +0 -0
  39. {structx-0.5.0 → structx-0.5.1}/tests/test_data_processor.py +0 -0
  40. {structx-0.5.0 → structx-0.5.1}/tests/test_document_conversion_integration.py +0 -0
  41. {structx-0.5.0 → structx-0.5.1}/tests/test_extractor_async.py +0 -0
  42. {structx-0.5.0 → structx-0.5.1}/tests/test_file_reader.py +0 -0
  43. {structx-0.5.0 → structx-0.5.1}/tests/test_result_manager_and_helpers.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: structx
3
- Version: 0.5.0
3
+ Version: 0.5.1
4
4
  Summary: Structured data extraction from text using LLMs and dynamic model generation
5
5
  Author-email: blacksuan19 <py@aolabs.dev>
6
6
  Classifier: Development Status :: 5 - Production/Stable
@@ -29,34 +29,34 @@ Classifier: Typing :: Typed
29
29
  Requires-Python: >=3.10
30
30
  Description-Content-Type: text/markdown
31
31
  License-File: LICENSE
32
- Requires-Dist: instructor
33
- Requires-Dist: litellm
34
- Requires-Dist: loguru
35
- Requires-Dist: omegaconf
36
- Requires-Dist: openpyxl>=3.1.5
37
- Requires-Dist: pandas
38
- Requires-Dist: pydantic
39
- Requires-Dist: tabulate>=0.9.0
40
- Requires-Dist: tenacity
41
- Requires-Dist: tqdm
32
+ Requires-Dist: instructor==1.8.0
33
+ Requires-Dist: litellm==1.68.1
34
+ Requires-Dist: loguru==0.7.3
35
+ Requires-Dist: omegaconf==2.3.0
36
+ Requires-Dist: openpyxl==3.1.5
37
+ Requires-Dist: pandas==2.2.3
38
+ Requires-Dist: pydantic==2.11.4
39
+ Requires-Dist: tabulate==0.9.0
40
+ Requires-Dist: tenacity==9.1.2
41
+ Requires-Dist: tqdm==4.68.4
42
42
  Provides-Extra: dev
43
- Requires-Dist: black; extra == "dev"
44
- Requires-Dist: bumpver; extra == "dev"
45
- Requires-Dist: pip-tools; extra == "dev"
46
- Requires-Dist: pytest; extra == "dev"
47
- Requires-Dist: wheel; extra == "dev"
43
+ Requires-Dist: black==25.1.0; extra == "dev"
44
+ Requires-Dist: bumpver==2024.1130; extra == "dev"
45
+ Requires-Dist: pip-tools==7.4.1; extra == "dev"
46
+ Requires-Dist: pytest==9.1.1; extra == "dev"
47
+ Requires-Dist: wheel==0.45.1; extra == "dev"
48
48
  Provides-Extra: docs
49
- Requires-Dist: docling-slim[convert-core,format-docx,format-html,format-latex,format-markdown,format-opendocument,format-pdf,format-pptx,format-web,models-local]; extra == "docs"
50
- Requires-Dist: torch; extra == "docs"
51
- Requires-Dist: torchvision; extra == "docs"
52
- Requires-Dist: weasyprint; extra == "docs"
49
+ Requires-Dist: docling-slim[convert-core,format-docx,format-html,format-latex,format-markdown,format-opendocument,format-pdf,format-pptx,format-web,models-local]==2.111.0; extra == "docs"
50
+ Requires-Dist: torch==2.13.0; extra == "docs"
51
+ Requires-Dist: torchvision==0.28.0; extra == "docs"
52
+ Requires-Dist: weasyprint==69.0; extra == "docs"
53
53
  Provides-Extra: mkdocs
54
- Requires-Dist: mkdocs; extra == "mkdocs"
55
- Requires-Dist: mkdocs-material; extra == "mkdocs"
56
- Requires-Dist: mkdocstrings[python]; extra == "mkdocs"
57
- Requires-Dist: mkdocs-git-revision-date-localized-plugin; extra == "mkdocs"
58
- Requires-Dist: mkdocs-material[imaging]; extra == "mkdocs"
59
- Requires-Dist: mkdocs-mermaid2-plugin; extra == "mkdocs"
54
+ Requires-Dist: mkdocs==1.6.1; extra == "mkdocs"
55
+ Requires-Dist: mkdocs-material==9.7.6; extra == "mkdocs"
56
+ Requires-Dist: mkdocstrings[python]==0.29.1; extra == "mkdocs"
57
+ Requires-Dist: mkdocs-git-revision-date-localized-plugin==1.4.5; extra == "mkdocs"
58
+ Requires-Dist: mkdocs-material[imaging]==9.7.6; extra == "mkdocs"
59
+ Requires-Dist: mkdocs-mermaid2-plugin==1.2.3; extra == "mkdocs"
60
60
  Dynamic: license-file
61
61
 
62
62
  # structx
@@ -65,7 +65,7 @@ Advanced structured data extraction from any document using LLMs with multimodal
65
65
  support.
66
66
 
67
67
  [![Documentation](https://img.shields.io/badge/docs-mkdocs-blue.svg?style=for-the-badge)](https://structx.aolabs.dev "Documentation")
68
- [![PyPI](https://img.shields.io/badge/PyPi-0.5.0-blue?style=for-the-badge)](https://pypi.org/project/structx "Package")
68
+ [![PyPI](https://img.shields.io/badge/PyPi-0.5.1-blue?style=for-the-badge)](https://pypi.org/project/structx "Package")
69
69
  [![GitHub Actions](https://img.shields.io/badge/github%20actions-%232671E5.svg?style=for-the-badge&logo=githubactions&logoColor=white)](# "Build with GitHub Actions")
70
70
 
71
71
  `structx` is a powerful Python library for extracting structured data from text,
@@ -4,7 +4,7 @@ Advanced structured data extraction from any document using LLMs with multimodal
4
4
  support.
5
5
 
6
6
  [![Documentation](https://img.shields.io/badge/docs-mkdocs-blue.svg?style=for-the-badge)](https://structx.aolabs.dev "Documentation")
7
- [![PyPI](https://img.shields.io/badge/PyPi-0.5.0-blue?style=for-the-badge)](https://pypi.org/project/structx "Package")
7
+ [![PyPI](https://img.shields.io/badge/PyPi-0.5.1-blue?style=for-the-badge)](https://pypi.org/project/structx "Package")
8
8
  [![GitHub Actions](https://img.shields.io/badge/github%20actions-%232671E5.svg?style=for-the-badge&logo=githubactions&logoColor=white)](# "Build with GitHub Actions")
9
9
 
10
10
  `structx` is a powerful Python library for extracting structured data from text,
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "structx"
7
- version = "0.5.0"
7
+ version = "0.5.1"
8
8
  description = "Structured data extraction from text using LLMs and dynamic model generation"
9
9
  authors = [{ name = "blacksuan19", email = "py@aolabs.dev" }]
10
10
  license-files = ["LICENSE"]
@@ -37,40 +37,46 @@ classifiers = [
37
37
  ]
38
38
 
39
39
  dependencies = [
40
- "instructor",
41
- "litellm",
42
- "loguru",
43
- "omegaconf",
44
- "openpyxl>=3.1.5",
45
- "pandas",
46
- "pydantic",
47
- "tabulate>=0.9.0", # required for pandas .to_markdown()
48
- "tenacity",
49
- "tqdm",
40
+ "instructor==1.8.0",
41
+ "litellm==1.68.1",
42
+ "loguru==0.7.3",
43
+ "omegaconf==2.3.0",
44
+ "openpyxl==3.1.5",
45
+ "pandas==2.2.3",
46
+ "pydantic==2.11.4",
47
+ "tabulate==0.9.0", # required for pandas .to_markdown()
48
+ "tenacity==9.1.2",
49
+ "tqdm==4.68.4",
50
50
  ]
51
51
 
52
52
  [project.optional-dependencies]
53
- dev = ["black", "bumpver", "pip-tools", "pytest", "wheel"]
53
+ dev = [
54
+ "black==25.1.0",
55
+ "bumpver==2024.1130",
56
+ "pip-tools==7.4.1",
57
+ "pytest==9.1.1",
58
+ "wheel==0.45.1",
59
+ ]
54
60
 
55
61
  # Optional document processing support. Kept out of the base install because
56
62
  # Docling's local model pipeline requires PyTorch.
57
63
  # The format-pdf extra is still needed because DocumentConverter imports its
58
64
  # PDF backend dependencies even when existing PDFs are passed through directly.
59
65
  docs = [
60
- "docling-slim[convert-core,format-docx,format-html,format-latex,format-markdown,format-opendocument,format-pdf,format-pptx,format-web,models-local]",
61
- "torch",
62
- "torchvision",
63
- "weasyprint",
66
+ "docling-slim[convert-core,format-docx,format-html,format-latex,format-markdown,format-opendocument,format-pdf,format-pptx,format-web,models-local]==2.111.0",
67
+ "torch==2.13.0",
68
+ "torchvision==0.28.0",
69
+ "weasyprint==69.0",
64
70
  ]
65
71
 
66
72
  # Documentation site tooling.
67
73
  mkdocs = [
68
- "mkdocs",
69
- "mkdocs-material",
70
- "mkdocstrings[python]",
71
- "mkdocs-git-revision-date-localized-plugin",
72
- "mkdocs-material[imaging]",
73
- "mkdocs-mermaid2-plugin",
74
+ "mkdocs==1.6.1",
75
+ "mkdocs-material==9.7.6",
76
+ "mkdocstrings[python]==0.29.1",
77
+ "mkdocs-git-revision-date-localized-plugin==1.4.5",
78
+ "mkdocs-material[imaging]==9.7.6",
79
+ "mkdocs-mermaid2-plugin==1.2.3",
74
80
  ]
75
81
 
76
82
  [[tool.uv.index]]
@@ -87,7 +93,7 @@ torchvision = [
87
93
  ]
88
94
 
89
95
  [tool.bumpver]
90
- current_version = "0.5.0"
96
+ current_version = "0.5.1"
91
97
  version_pattern = "MAJOR.MINOR.PATCH"
92
98
  commit_message = "Bump version {old_version} -> {new_version}"
93
99
  commit = true
@@ -11,7 +11,7 @@ from structx.core.models import (
11
11
  )
12
12
  from structx.extraction.extractor import Extractor
13
13
 
14
- __version__ = "0.5.0"
14
+ __version__ = "0.5.1"
15
15
  __all__ = [
16
16
  "Extractor",
17
17
  "ExtractionConfig",
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: structx
3
- Version: 0.5.0
3
+ Version: 0.5.1
4
4
  Summary: Structured data extraction from text using LLMs and dynamic model generation
5
5
  Author-email: blacksuan19 <py@aolabs.dev>
6
6
  Classifier: Development Status :: 5 - Production/Stable
@@ -29,34 +29,34 @@ Classifier: Typing :: Typed
29
29
  Requires-Python: >=3.10
30
30
  Description-Content-Type: text/markdown
31
31
  License-File: LICENSE
32
- Requires-Dist: instructor
33
- Requires-Dist: litellm
34
- Requires-Dist: loguru
35
- Requires-Dist: omegaconf
36
- Requires-Dist: openpyxl>=3.1.5
37
- Requires-Dist: pandas
38
- Requires-Dist: pydantic
39
- Requires-Dist: tabulate>=0.9.0
40
- Requires-Dist: tenacity
41
- Requires-Dist: tqdm
32
+ Requires-Dist: instructor==1.8.0
33
+ Requires-Dist: litellm==1.68.1
34
+ Requires-Dist: loguru==0.7.3
35
+ Requires-Dist: omegaconf==2.3.0
36
+ Requires-Dist: openpyxl==3.1.5
37
+ Requires-Dist: pandas==2.2.3
38
+ Requires-Dist: pydantic==2.11.4
39
+ Requires-Dist: tabulate==0.9.0
40
+ Requires-Dist: tenacity==9.1.2
41
+ Requires-Dist: tqdm==4.68.4
42
42
  Provides-Extra: dev
43
- Requires-Dist: black; extra == "dev"
44
- Requires-Dist: bumpver; extra == "dev"
45
- Requires-Dist: pip-tools; extra == "dev"
46
- Requires-Dist: pytest; extra == "dev"
47
- Requires-Dist: wheel; extra == "dev"
43
+ Requires-Dist: black==25.1.0; extra == "dev"
44
+ Requires-Dist: bumpver==2024.1130; extra == "dev"
45
+ Requires-Dist: pip-tools==7.4.1; extra == "dev"
46
+ Requires-Dist: pytest==9.1.1; extra == "dev"
47
+ Requires-Dist: wheel==0.45.1; extra == "dev"
48
48
  Provides-Extra: docs
49
- Requires-Dist: docling-slim[convert-core,format-docx,format-html,format-latex,format-markdown,format-opendocument,format-pdf,format-pptx,format-web,models-local]; extra == "docs"
50
- Requires-Dist: torch; extra == "docs"
51
- Requires-Dist: torchvision; extra == "docs"
52
- Requires-Dist: weasyprint; extra == "docs"
49
+ Requires-Dist: docling-slim[convert-core,format-docx,format-html,format-latex,format-markdown,format-opendocument,format-pdf,format-pptx,format-web,models-local]==2.111.0; extra == "docs"
50
+ Requires-Dist: torch==2.13.0; extra == "docs"
51
+ Requires-Dist: torchvision==0.28.0; extra == "docs"
52
+ Requires-Dist: weasyprint==69.0; extra == "docs"
53
53
  Provides-Extra: mkdocs
54
- Requires-Dist: mkdocs; extra == "mkdocs"
55
- Requires-Dist: mkdocs-material; extra == "mkdocs"
56
- Requires-Dist: mkdocstrings[python]; extra == "mkdocs"
57
- Requires-Dist: mkdocs-git-revision-date-localized-plugin; extra == "mkdocs"
58
- Requires-Dist: mkdocs-material[imaging]; extra == "mkdocs"
59
- Requires-Dist: mkdocs-mermaid2-plugin; extra == "mkdocs"
54
+ Requires-Dist: mkdocs==1.6.1; extra == "mkdocs"
55
+ Requires-Dist: mkdocs-material==9.7.6; extra == "mkdocs"
56
+ Requires-Dist: mkdocstrings[python]==0.29.1; extra == "mkdocs"
57
+ Requires-Dist: mkdocs-git-revision-date-localized-plugin==1.4.5; extra == "mkdocs"
58
+ Requires-Dist: mkdocs-material[imaging]==9.7.6; extra == "mkdocs"
59
+ Requires-Dist: mkdocs-mermaid2-plugin==1.2.3; extra == "mkdocs"
60
60
  Dynamic: license-file
61
61
 
62
62
  # structx
@@ -65,7 +65,7 @@ Advanced structured data extraction from any document using LLMs with multimodal
65
65
  support.
66
66
 
67
67
  [![Documentation](https://img.shields.io/badge/docs-mkdocs-blue.svg?style=for-the-badge)](https://structx.aolabs.dev "Documentation")
68
- [![PyPI](https://img.shields.io/badge/PyPi-0.5.0-blue?style=for-the-badge)](https://pypi.org/project/structx "Package")
68
+ [![PyPI](https://img.shields.io/badge/PyPi-0.5.1-blue?style=for-the-badge)](https://pypi.org/project/structx "Package")
69
69
  [![GitHub Actions](https://img.shields.io/badge/github%20actions-%232671E5.svg?style=for-the-badge&logo=githubactions&logoColor=white)](# "Build with GitHub Actions")
70
70
 
71
71
  `structx` is a powerful Python library for extracting structured data from text,
@@ -0,0 +1,31 @@
1
+ instructor==1.8.0
2
+ litellm==1.68.1
3
+ loguru==0.7.3
4
+ omegaconf==2.3.0
5
+ openpyxl==3.1.5
6
+ pandas==2.2.3
7
+ pydantic==2.11.4
8
+ tabulate==0.9.0
9
+ tenacity==9.1.2
10
+ tqdm==4.68.4
11
+
12
+ [dev]
13
+ black==25.1.0
14
+ bumpver==2024.1130
15
+ pip-tools==7.4.1
16
+ pytest==9.1.1
17
+ wheel==0.45.1
18
+
19
+ [docs]
20
+ docling-slim[convert-core,format-docx,format-html,format-latex,format-markdown,format-opendocument,format-pdf,format-pptx,format-web,models-local]==2.111.0
21
+ torch==2.13.0
22
+ torchvision==0.28.0
23
+ weasyprint==69.0
24
+
25
+ [mkdocs]
26
+ mkdocs==1.6.1
27
+ mkdocs-material==9.7.6
28
+ mkdocstrings[python]==0.29.1
29
+ mkdocs-git-revision-date-localized-plugin==1.4.5
30
+ mkdocs-material[imaging]==9.7.6
31
+ mkdocs-mermaid2-plugin==1.2.3
@@ -1,31 +0,0 @@
1
- instructor
2
- litellm
3
- loguru
4
- omegaconf
5
- openpyxl>=3.1.5
6
- pandas
7
- pydantic
8
- tabulate>=0.9.0
9
- tenacity
10
- tqdm
11
-
12
- [dev]
13
- black
14
- bumpver
15
- pip-tools
16
- pytest
17
- wheel
18
-
19
- [docs]
20
- docling-slim[convert-core,format-docx,format-html,format-latex,format-markdown,format-opendocument,format-pdf,format-pptx,format-web,models-local]
21
- torch
22
- torchvision
23
- weasyprint
24
-
25
- [mkdocs]
26
- mkdocs
27
- mkdocs-material
28
- mkdocstrings[python]
29
- mkdocs-git-revision-date-localized-plugin
30
- mkdocs-material[imaging]
31
- mkdocs-mermaid2-plugin
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes