natural-pdf 0.1.35__py3-none-any.whl → 0.1.36__py3-none-any.whl

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.
@@ -2,17 +2,29 @@
2
2
  Analyzers for natural_pdf.
3
3
  """
4
4
 
5
+ # Import these directly as they don't depend on Region
5
6
  from natural_pdf.analyzers.guides import Guides
6
- from natural_pdf.analyzers.layout.layout_analyzer import LayoutAnalyzer
7
- from natural_pdf.analyzers.layout.layout_manager import LayoutManager
8
- from natural_pdf.analyzers.layout.layout_options import LayoutOptions
9
7
  from natural_pdf.analyzers.shape_detection_mixin import ShapeDetectionMixin
10
8
  from natural_pdf.analyzers.text_options import TextStyleOptions
11
9
  from natural_pdf.analyzers.text_structure import TextStyleAnalyzer
12
10
 
11
+ # Lazy imports to avoid circular dependencies
12
+ # These will be imported when actually accessed
13
+ def __getattr__(name):
14
+ if name == "LayoutAnalyzer":
15
+ from natural_pdf.analyzers.layout.layout_analyzer import LayoutAnalyzer
16
+ return LayoutAnalyzer
17
+ elif name == "LayoutManager":
18
+ from natural_pdf.analyzers.layout.layout_manager import LayoutManager
19
+ return LayoutManager
20
+ elif name == "LayoutOptions":
21
+ from natural_pdf.analyzers.layout.layout_options import LayoutOptions
22
+ return LayoutOptions
23
+ raise AttributeError(f"module {__name__!r} has no attribute {name!r}")
24
+
13
25
  __all__ = [
14
26
  "LayoutAnalyzer",
15
- "LayoutManager",
27
+ "LayoutManager",
16
28
  "LayoutOptions",
17
29
  "ShapeDetectionMixin",
18
30
  "TextStyleOptions",
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: natural-pdf
3
- Version: 0.1.35
3
+ Version: 0.1.36
4
4
  Summary: A more intuitive interface for working with PDFs
5
5
  Author-email: Jonathan Soma <jonathan.soma@gmail.com>
6
6
  License-Expression: MIT
@@ -11,6 +11,7 @@ Classifier: Operating System :: OS Independent
11
11
  Requires-Python: >=3.9
12
12
  Description-Content-Type: text/markdown
13
13
  License-File: LICENSE
14
+ Requires-Dist: scikit-learn
14
15
  Requires-Dist: markdown
15
16
  Requires-Dist: pandas
16
17
  Requires-Dist: pdfplumber
@@ -1,6 +1,6 @@
1
1
  natural_pdf/__init__.py,sha256=qDFJNF8sbEDO-2WSFAxoWEM8updOUP6dB-ckya0kxfs,3275
2
2
  natural_pdf/cli.py,sha256=SkPwhhMM-GhLsj3O1n1Agxz4KOxcZ08sj8hVQSFJB5c,4064
3
- natural_pdf/analyzers/__init__.py,sha256=IPu_PMKFviDeEIeiC8_2KdeqH7z8OQ6q2v980hkByFY,672
3
+ natural_pdf/analyzers/__init__.py,sha256=M5oD4oEsIBWrzgTaeg4uBYrC4OPd7Mp7tz8ootKN_l8,1134
4
4
  natural_pdf/analyzers/guides.py,sha256=5Lqc51trtqmLvjxLjDS__mgeyviRrjV-CIIT69RmEt4,92327
5
5
  natural_pdf/analyzers/shape_detection_mixin.py,sha256=Ef1o73QYVXQ2QcQMM_W9XRwY6vaIQHgxzD7etJ6LbiM,62820
6
6
  natural_pdf/analyzers/text_options.py,sha256=qEkDaYWla0rIM_gszEOsu52q7C_dAfV81P2HLJZM2sw,3333
@@ -97,7 +97,7 @@ natural_pdf/utils/text_extraction.py,sha256=mDeN1_VevNi3RwvFe48PM5vBh-A5WeBlYgP6
97
97
  natural_pdf/utils/visualization.py,sha256=olDkWtuVzP0NxRg0CP0DL-eXNCY7Bs-SH-2Xn-cjbo0,9370
98
98
  natural_pdf/widgets/__init__.py,sha256=QTVaUmsw__FCweFYZebwPssQxxUFUMd0wpm_cUbGZJY,181
99
99
  natural_pdf/widgets/viewer.py,sha256=KW3JogdR2TMg2ECUMYp8hwd060hfg8EsYBWxb5IEzBY,24942
100
- natural_pdf-0.1.35.dist-info/licenses/LICENSE,sha256=9zfwINwJlarbDmdh6iJV4QUG54QSJlSAUcnC1YiC_Ns,1074
100
+ natural_pdf-0.1.36.dist-info/licenses/LICENSE,sha256=9zfwINwJlarbDmdh6iJV4QUG54QSJlSAUcnC1YiC_Ns,1074
101
101
  optimization/memory_comparison.py,sha256=F90D_5WhliSGAct_lyx93xd4q4F-jeo8QpGyDr8tmNw,6543
102
102
  optimization/pdf_analyzer.py,sha256=xf6h-FNlqCpsm8NriXcs_bQZOB8eQkxgGGKVRL_jgCM,19347
103
103
  optimization/performance_analysis.py,sha256=RjAqeE3YS1r_7qTWkY6Ng5YMbb6MXJXfXX6LoVjg_xQ,13035
@@ -114,8 +114,8 @@ tools/bad_pdf_eval/llm_enrich.py,sha256=mCh4KGi1HmIkzGjj5rrHz1Osd7sEX1IZ_FW08H1t
114
114
  tools/bad_pdf_eval/llm_enrich_with_retry.py,sha256=XUtPF1hUvqd3frDXT0wDTXoonuAivhjM5vgFdZ-tm0A,9373
115
115
  tools/bad_pdf_eval/reporter.py,sha256=e1g__mkSB4q02p3mGWOwMhvFs7F2HJosNBxup0-LkyU,400
116
116
  tools/bad_pdf_eval/utils.py,sha256=hR95XQ7qf7Cu6BdyX0L7ggGVx-ah5sK0jHWblTJUUic,4896
117
- natural_pdf-0.1.35.dist-info/METADATA,sha256=SVdCwYrjweXrrmU8m2korCIMJENbN9zDasRCi2pkb8E,6711
118
- natural_pdf-0.1.35.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
119
- natural_pdf-0.1.35.dist-info/entry_points.txt,sha256=1R_KMv7g60UBBpRqGfw7bppsMNGdayR-iJlb9ohEk_8,81
120
- natural_pdf-0.1.35.dist-info/top_level.txt,sha256=oZlRzSc3nZ9sV3L6kD_Di734Pp62ANrm46imFVa51qQ,58
121
- natural_pdf-0.1.35.dist-info/RECORD,,
117
+ natural_pdf-0.1.36.dist-info/METADATA,sha256=bAjoKpKPZW76v_QVBA0HgyXvA9ZP2uFrrD50mJq051M,6739
118
+ natural_pdf-0.1.36.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
119
+ natural_pdf-0.1.36.dist-info/entry_points.txt,sha256=1R_KMv7g60UBBpRqGfw7bppsMNGdayR-iJlb9ohEk_8,81
120
+ natural_pdf-0.1.36.dist-info/top_level.txt,sha256=oZlRzSc3nZ9sV3L6kD_Di734Pp62ANrm46imFVa51qQ,58
121
+ natural_pdf-0.1.36.dist-info/RECORD,,