{"id":45090601,"url":"https://github.com/scdh/pygexml","last_synced_at":"2026-02-19T17:00:36.708Z","repository":{"id":339372681,"uuid":"1161097240","full_name":"SCDH/pygexml","owner":"SCDH","description":"Small pythonic wrapper around PAGE XML","archived":false,"fork":false,"pushed_at":"2026-02-19T15:14:00.000Z","size":19,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-02-19T15:46:44.978Z","etag":null,"topics":["page-xml","parser","python","xml"],"latest_commit_sha":null,"homepage":"https://scdh.github.io/pygexml/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SCDH.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-02-18T18:22:07.000Z","updated_at":"2026-02-19T15:14:01.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/SCDH/pygexml","commit_stats":null,"previous_names":["scdh/page-xml-wrapper"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/SCDH/pygexml","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SCDH%2Fpygexml","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SCDH%2Fpygexml/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SCDH%2Fpygexml/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SCDH%2Fpygexml/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SCDH","download_url":"https://codeload.github.com/SCDH/pygexml/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SCDH%2Fpygexml/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29623545,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-19T13:04:20.082Z","status":"ssl_error","status_checked_at":"2026-02-19T13:03:33.775Z","response_time":117,"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":["page-xml","parser","python","xml"],"created_at":"2026-02-19T17:00:36.025Z","updated_at":"2026-02-19T17:00:36.701Z","avatar_url":"https://github.com/SCDH.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pygexml\n\nA minimal Python wrapper around the [PAGE-XML][page-xml] format for OCR output.\n\n[![pygexml checks, tests and docs][workflows-badge]][workflows] [![API docs online][api-docs-badge]][api-docs]\n\n## Installation\n\n```\npip install pygexml\n```\n\nRequires Python 3.12+.\n\n## Usage\n\n```python\nfrom pygexml import Page\n\npage = Page.from_xml_string(xml_string)\n\nfor line in page.all_text():\n    print(line)\n```\n\n### Data model\n\n| Class | Import from |\n|---|---|\n| `Page` | `pygexml` |\n| `Page`, `TextRegion`, `TextLine`, `Coords` | `pygexml.page` |\n| `Point`, `Box`, `Polygon` | `pygexml.geometry` |\n\n`Page`, `TextRegion` and `TextLine` each expose `all_text()` and `all_words()` iterators.\nLookups by ID are available via `lookup_region()` and `lookup_textline()`.\n\nRefer to the [online API docs][api-docs] for details.\n\n## Development\n\n```bash\npip install \".[dev,test,docs]\"\n\nblack pygexml test test_util    # format\nmypy pygexml test test_util     # type check\npyright pygexml test test_util  # type check\npytest -v                       # tests\npdoc -o .api_docs pygexml/*     # API docs\n```\n\nCI runs on Python 3.12, 3.13 and 3.14. [API documentation][api-docs] is published to GitHub Pages on every push to `main`.\n\n## Contributing\n\n[Bug reports, feature requests][gh-issues] and [pull requests][gh-prs] are welcome. Feel free to open draft pull requests early to invite discussion and collaboration.\n\nPlease note that this project has a [Code of Conduct](CODE_OF_CONDUCT.md).\n\n## Copyright and License\n\nCopyright (c) 2026 [Mirko Westermeier][gh-memowe] (SCDH, University of Münster)\n\nReleased under the [MIT License](LICENSE).\n\n[page-xml]: https://github.com/PRImA-Research-Lab/PAGE-XML\n[workflows]: https://github.com/SCDH/pygexml/actions/workflows/ci.yml\n[workflows-badge]: https://github.com/SCDH/pygexml/actions/workflows/ci.yml/badge.svg\n[api-docs]: https://scdh.github.io/pygexml\n[api-docs-badge]: https://img.shields.io/badge/API%20docs-online-blue?logo=gitbook\u0026logoColor=lightgrey\n[gh-issues]: https://github.com/SCDH/pygexml/issues\n[gh-prs]: https://github.com/SCDH/pygexml/pulls\n[gh-memowe]: https://github.com/memowe\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscdh%2Fpygexml","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fscdh%2Fpygexml","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscdh%2Fpygexml/lists"}