Skip to main content

textract-cli

PyPI Changelog Tests License

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

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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

textract_cli-0.1-py3-none-any.whl (7.3 kB view details)

Uploaded Python 3

File details

Details for the file textract-cli-0.1.tar.gz.

File metadata

  • Download URL: textract-cli-0.1.tar.gz
  • Upload date:
  • Size: 7.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.0.0 CPython/3.12.2

File hashes

Hashes for textract-cli-0.1.tar.gz
Algorithm Hash digest
SHA256 ef555f6e1e52d63e8efd20e16c2fa950874a3e361a86f248755eccebdf17dffa
MD5 36e9783b54f6a52bf89b995576d76caa
BLAKE2b-256 a05cde8cc5e2c38e41955a9b0185e83d1c38128e176c53b87d23597fcbc4df16

See more details on using hashes here.

File details

Details for the file textract_cli-0.1-py3-none-any.whl.

File metadata

  • Download URL: textract_cli-0.1-py3-none-any.whl
  • Upload date:
  • Size: 7.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.0.0 CPython/3.12.2

File hashes

Hashes for textract_cli-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ed17add973cf94a43fc95a25ace82fb828747bb2867683cedd2cb9d2469d39e4
MD5 90b1eeae1e65bba72bb3cb9152bb0c74
BLAKE2b-256 fd746102999fc493cbfcfb944fd1ee4ff54831cfa2c4d672ca7df72359d8bcea

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page