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 +62 -0
- flowpdf/builder.py +662 -0
- flowpdf/client.py +194 -0
- flowpdf/exceptions.py +33 -0
- flowpdf/native.py +282 -0
- flowpdf/response.py +56 -0
- flowpdf/runtimes/linux-x64/native/libflowpdf_native.so +0 -0
- flowpdf/runtimes/win-x64/native/flowpdf_native.dll +0 -0
- flowpdf-1.1.7.dist-info/METADATA +152 -0
- flowpdf-1.1.7.dist-info/RECORD +12 -0
- flowpdf-1.1.7.dist-info/WHEEL +5 -0
- flowpdf-1.1.7.dist-info/top_level.txt +1 -0
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
|
+
]
|