{"id":15433007,"url":"https://github.com/simonw/textract-cli","last_synced_at":"2026-03-06T15:31:58.573Z","repository":{"id":230441146,"uuid":"779371543","full_name":"simonw/textract-cli","owner":"simonw","description":"CLI for running files through AWS Textract","archived":false,"fork":false,"pushed_at":"2024-03-31T16:42:19.000Z","size":14,"stargazers_count":54,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-11-19T12:27:57.082Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/simonw.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-03-29T17:23:10.000Z","updated_at":"2025-02-27T22:31:37.000Z","dependencies_parsed_at":"2024-10-20T20:19:22.859Z","dependency_job_id":null,"html_url":"https://github.com/simonw/textract-cli","commit_stats":{"total_commits":8,"total_committers":2,"mean_commits":4.0,"dds":0.125,"last_synced_commit":"bfb038adcc4cfa05776ad096a01a512a397e131f"},"previous_names":["simonw/textract-cli"],"tags_count":1,"template":false,"template_full_name":"simonw/click-app-template-repository","purl":"pkg:github/simonw/textract-cli","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonw%2Ftextract-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonw%2Ftextract-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonw%2Ftextract-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonw%2Ftextract-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/simonw","download_url":"https://codeload.github.com/simonw/textract-cli/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonw%2Ftextract-cli/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30183465,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-06T14:42:24.748Z","status":"ssl_error","status_checked_at":"2026-03-06T14:42:14.925Z","response_time":250,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-01T18:30:19.598Z","updated_at":"2026-03-06T15:31:58.537Z","avatar_url":"https://github.com/simonw.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# textract-cli\n\n[![PyPI](https://img.shields.io/pypi/v/textract-cli.svg)](https://pypi.org/project/textract-cli/)\n[![Changelog](https://img.shields.io/github/v/release/simonw/textract-cli?include_prereleases\u0026label=changelog)](https://github.com/simonw/textract-cli/releases)\n[![Tests](https://github.com/simonw/textract-cli/actions/workflows/test.yml/badge.svg)](https://github.com/simonw/textract-cli/actions/workflows/test.yml)\n[![License](https://img.shields.io/badge/license-Apache%202.0-blue.svg)](https://github.com/simonw/textract-cli/blob/master/LICENSE)\n\nCLI for running files through AWS Textract\n\n## Installation\n\nInstall this tool using `pip`:\n```bash\npip install textract-cli\n```\n## Configuration\n\nAny of the [methods for configuring](https://boto3.amazonaws.com/v1/documentation/api/latest/guide/configuration.html) `boto3` will work with this tool. Environment variables or a `~/.aws/config` file are good options here.\n\n## Usage\n\nTo run Textract OCR against a JPEG or PNG file (must be smaller than 5MB):\n```bash\ntextract-cli image.jpeg\n```\nThis will output to standard out. To save to a file use this:\n```bash\ntextract-cli image.jpeg \u003e output.txt\n```\nOr use the `-o/--output` option like this:\n```bash\ntextract-cli image.jpeg -o output.txt\n```\n\nFor help, run:\n```bash\ntextract-cli --help\n```\nYou can also use:\n```bash\npython -m textract_cli --help\n```\n## Alternatives\n\n[amazon-textract-textractor](https://aws-samples.github.io/amazon-textract-textractor/commandline.html) an Amazon project offering a similar but much more comprehensive CLI.\n\n## Development\n\nTo contribute to this tool, first checkout the code. Then create a new virtual environment:\n```bash\ncd textract-cli\npython -m venv venv\nsource venv/bin/activate\n```\nNow install the dependencies and test dependencies:\n```bash\npip install -e '.[test]'\n```\nTo run the tests:\n```bash\npytest\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimonw%2Ftextract-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsimonw%2Ftextract-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimonw%2Ftextract-cli/lists"}