flowpdf 1.1.7__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.
flowpdf/__init__.py ADDED
@@ -0,0 +1,62 @@
1
+ """
2
+ FlowPDF Python SDK
3
+ Universal Document & Report Engine with In-Process Rust Core and Cloud API Client.
4
+ """
5
+
6
+ from .native import FlowPdfEngine
7
+ from .builder import (
8
+ ReportDocument,
9
+ PageConfigBuilder,
10
+ ColumnBuilder,
11
+ RowBuilder,
12
+ TableBuilder,
13
+ TableColumnBuilder,
14
+ ContainerBuilder,
15
+ TextBuilder,
16
+ )
17
+ from .client import FlowPdfClient
18
+ from .response import ReportResponse
19
+ from .exceptions import (
20
+ FlowPdfSDKError,
21
+ AuthenticationError,
22
+ NotFoundError,
23
+ ValidationError,
24
+ ServerError,
25
+ TimeoutError,
26
+ )
27
+
28
+ __version__ = "1.1.7"
29
+
30
+ def extract_text(pdf_bytes: bytes) -> str:
31
+ """Extracts text from PDF bytes using native Rust Core."""
32
+ return FlowPdfEngine.extract_text(pdf_bytes)
33
+
34
+ def extract_document(pdf_bytes: bytes, options=None) -> dict:
35
+ """Extracts structured document data (pages, metadata) from PDF bytes using native Rust Core."""
36
+ return FlowPdfEngine.extract_document(pdf_bytes, options)
37
+
38
+ __all__ = [
39
+ # In-Process Native Engine
40
+ "FlowPdfEngine",
41
+ "extract_text",
42
+ "extract_document",
43
+ # Fluent Builders
44
+ "ReportDocument",
45
+ "PageConfigBuilder",
46
+ "ColumnBuilder",
47
+ "RowBuilder",
48
+ "TableBuilder",
49
+ "TableColumnBuilder",
50
+ "ContainerBuilder",
51
+ "TextBuilder",
52
+ # Remote HTTP Client
53
+ "FlowPdfClient",
54
+ "ReportResponse",
55
+ # Exceptions
56
+ "FlowPdfSDKError",
57
+ "AuthenticationError",
58
+ "NotFoundError",
59
+ "ValidationError",
60
+ "ServerError",
61
+ "TimeoutError",
62
+ ]