Metadata-Version: 2.1
Name: amazon-textract-prettyprinter
Version: 0.0.3
Summary: Amazon Textract Helper tools for pretty printing
Home-page: https://github.com/aws-samples/amazon-textract-textractor
Author: Amazon Rekognition Textract Demoes
Author-email: rekognition-textract-demos@amazon.com
License: Apache License Version 2.0
Keywords: amazon-textract-textractor amazon textract textractor helper pretty-print
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Classifier: Topic :: Utilities
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Requires-Python: >=3.6
Description-Content-Type: text/markdown
Requires-Dist: boto3
Requires-Dist: botocore
Requires-Dist: amazon-textract-response-parser
Requires-Dist: tabulate (==0.8.9)

# Textract-PrettyPrinter

amazon-textract-prettyprinter

# Install

```bash
> python -m pip install amazon-textract-prettyprinter
```

Make sure your environment is setup with AWS credentials through configuration files or environment variables or an attached role. (https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-configure.html)

# Samples

## Get string for TABLES using the default method

```
from textractcaller.t_call import call_textract
from textractprettyprinter.t_pretty_print import Textract_Pretty_Print, get_string

doc = call_textract(input_document=input_document, features=features)
get_string(textract_json_string=doc, output_type=Textract_Pretty_Print.TABLES)
```
## Get table with custom format

```
from textractcaller.t_call import call_textract
from textractprettyprinter.t_pretty_print import Textract_Pretty_Print, get_string

doc = call_textract(input_document=input_document, features=features)
get_tables_string(textract_json_string=doc)
```



