Registry /
aws / amazon-textract-prettyprinter
Install & Compatibility
Where this runs
tested against v0.1.10 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
muslpy 3.10–3.910 runs
installs and imports cleanly · install 0.0s · import 0.000s · 52.7MB
glibcpy 3.10–3.910 runs
installs and imports cleanly · install 4.2s · import 0.000s · 53MB
51MB installed
● package 51MB
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
Pretty_Print_Table_Format
✓ from textractprettyprinter import Pretty_Print_Table_Format
✗ from textractprettyprinter.t_pretty_print import Textract_PrettyPrint
t_pretty_print
✓ from textractprettyprinter import t_pretty_print
✗ from textractprettyprinter.t_pretty_print import Textract_PrettyPrint
get_layout_csv_from_trp2
✓ from textractprettyprinter import get_layout_csv_from_trp2
✗ from textractprettyprinter.t_pretty_print import Textract_PrettyPrint
Minimal example: call Textract on a PDF and print the response as plain text and CSV.
import boto3
from textractcaller.t_call import call_textract
from textractprettyprinter.t_pretty_print import Textract_PrettyPrint
# Call Textract API (make sure AWS credentials are configured)
client = boto3.client('textract', region_name='us-east-1')
response = call_textract(input_document="s3://bucket/document.pdf", client=client)
# Pretty print as text
pretty_printer = Textract_PrettyPrint()
text_output = pretty_printer.print_text(response)
print(text_output)
# Pretty print as CSV (columns: Key, Value)
csv_output = pretty_printer.print_csv(response)
print(csv_output)
Upgrade
Version history
0.1.10latest on PyPI · released May 15, 2024
Audit
Dependencies
amazon-textract-callerrequiredRequired for calling Textract API and converting response to PrettyPrinter compatible objects
amazon-textract-response-parserrequiredRequired for parsing Textract JSON into response objects
trpoptionalLegacy dependency, required for older format support