{"id":13415630,"url":"https://github.com/cneud/alto-tools","last_synced_at":"2025-05-08T22:43:24.651Z","repository":{"id":46574489,"uuid":"41920805","full_name":"cneud/alto-tools","owner":"cneud","description":"Python tools for performing various operations on ALTO XML files","archived":false,"fork":false,"pushed_at":"2025-02-27T19:09:46.000Z","size":147,"stargazers_count":46,"open_issues_count":0,"forks_count":16,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-05-08T22:43:19.949Z","etag":null,"topics":["alto-xml","digital-library","optical-character-recognition"],"latest_commit_sha":null,"homepage":"","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/cneud.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}},"created_at":"2015-09-04T14:40:20.000Z","updated_at":"2025-04-14T10:18:49.000Z","dependencies_parsed_at":"2023-02-17T04:16:12.868Z","dependency_job_id":"4e4c5d6a-a0d5-449e-8bb9-0f92e91fbb0e","html_url":"https://github.com/cneud/alto-tools","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cneud%2Falto-tools","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cneud%2Falto-tools/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cneud%2Falto-tools/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cneud%2Falto-tools/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cneud","download_url":"https://codeload.github.com/cneud/alto-tools/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253160727,"owners_count":21863624,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["alto-xml","digital-library","optical-character-recognition"],"created_at":"2024-07-30T21:00:50.903Z","updated_at":"2025-05-08T22:43:24.643Z","avatar_url":"https://github.com/cneud.png","language":"Python","funding_links":[],"categories":["1. \u003ca name='Software'\u003e\u003c/a\u003eSoftware","Software","Python"],"sub_categories":["1.3. \u003ca name='OCRfileformats'\u003e\u003c/a\u003eOCR file formats","OCR file formats"],"readme":"\u003ch3 align=\"center\"\u003eALTO Tools\u003c/h3\u003e\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://www.python.org/\"\u003ePython\u003c/a\u003e tools for performing various operations on \u003ca href=\"http://www.loc.gov/standards/alto/\"\u003eALTO\u003c/a\u003e XML files\n\u003c/p\u003e\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://www.python.org/downloads/\"\u003e\u003cimg src=\"https://img.shields.io/badge/python-3.8+-blue.svg\" title=\"Python Version\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://pypi.org/project/alto-tools/\"\u003e\u003cimg src=\"https://img.shields.io/pypi/v/alto-tools.svg\" title=\"PyPI Version\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://github.com/cneud/alto-tools/actions/workflows/tests.yml\"\u003e\u003cimg src=\"https://github.com/cneud/alto-tools/actions/workflows/tests.yml/badge.svg\" title=\"GitHub Actions Tests Status\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://opensource.org/license/apache-2-0/\"\u003e\u003cimg src=\"https://img.shields.io/github/license/cneud/alto-tools\" title=\"Apache Software License 2.0\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n---\n\n## Installation\n\nYou can install from [PyPI](https://pypi.org/project/alto-tools/) by running\n\n```bash\npip install alto-tools\n```\n\nor clone the repository, enter it and run\n\n```bash\npip install .\n```\n\n## Usage\n\n```bash\nalto-tools \u003cINPUT\u003e [OPTION] \n```\n\n`INPUT` should be the path to an ALTO xml file or directory containing ALTO xml files.\n\nTo pipe the output of another command into `alto-tools`, pass the path `-` as the `INPUT` argument, e.g.\n\n```bash\ncat tests/data/PPN720183197-PHYS_0004.xml | alto-tools -t -\n```\n\nThe following `OPTIONS` are currently supported:\n\n| OPTION                 | Description                                                       |\n|------------------------|:------------------------------------------------------------------|\n| `-t` `--text`          | Extract UTF-8 encoded text content                                |\n| `-c` `--confidence`    | Extract mean OCR word confidence score                            |\n| `-i` `--illustrations` | Extract bounding box coordinates of `\u003cIllustration\u003e` elements     |\n| `-g` `--graphics`      | Extract bounding box coordinates of `\u003cGraphicalElement\u003e` elements |\n| `-s` `--statistics`    | Extract statistical info (no. of textlines, words, glyphs etc.)   |\n\nAll output is sent to `stdout`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcneud%2Falto-tools","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcneud%2Falto-tools","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcneud%2Falto-tools/lists"}