CLI for running files through AWS Textract
Project description
textract-cli
CLI for running files through AWS Textract
Installation
Install this tool using pip
:
pip install textract-cli
Configuration
Any of the methods for configuring boto3
will work with this tool. Environment variables or a ~/.aws/config
file are good options here.
Usage
To run Textract OCR against a JPEG or PNG file (must be smaller than 5MB):
textract-cli image.jpeg
This will output to standard out. To save to a file use this:
textract-cli image.jpeg > output.txt
Or use the -o/--output
option like this:
textract-cli image.jpeg -o output.txt
For help, run:
textract-cli --help
You can also use:
python -m textract_cli --help
Development
To contribute to this tool, first checkout the code. Then create a new virtual environment:
cd textract-cli
python -m venv venv
source venv/bin/activate
Now install the dependencies and test dependencies:
pip install -e '.[test]'
To run the tests:
pytest
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
textract-cli-0.1.tar.gz
(7.0 kB
view hashes)
Built Distribution
Close
Hashes for textract_cli-0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ed17add973cf94a43fc95a25ace82fb828747bb2867683cedd2cb9d2469d39e4 |
|
MD5 | 90b1eeae1e65bba72bb3cb9152bb0c74 |
|
BLAKE2b-256 | fd746102999fc493cbfcfb944fd1ee4ff54831cfa2c4d672ca7df72359d8bcea |