Skip to main content

Transkribus Processing API Client

Tests pypi Version

Python bindings for the Transkribus Metagrapho/Processing API.

Usage

with ContextManager

from time import sleep
from transkribus_metagrapho_api import transkribus_metagrapho_api

with transkribus_metagrapho_api(USERNAME, PASSWORD) as api:
    process_id = api.process(IMAGE_PATH, line_detection=49272, htr_id=51170)
    while True:
        match api.status(process_id).upper():
            case "FINISHED":
                print(api.apge(process_id))
                break
            case "FAILED":
                print("FAILED")
                break
        sleep(10)

or

with transkribus_metagrapho_api(USERNAME, PASSWORD) as api:
    for image_path, page_xml in zip(IMAGES, api(IMAGES*, line_detection=49272, htr_id=51170)):
        with open(
            Path(image_path.parent, image_path.name.replace(image_path.suffix, ".xml")),
            "w",
            encoding="utf8"
        ) as f:
            f.write(page_xml)

from command line

$ python3 -m transkribus_metagrapho_api --username USERNAME --password PASSWORD --images images/*.tiff

Metadata

Release files for transkribus-metagrapho-api 0.3.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for transkribus-metagrapho-api 0.3.4
File Size Uploaded Provenance Actions
transkribus_metagrapho_api-0.3.4.tar.gz 21.6 kB Without provenance Details for transkribus_metagrapho_api-0.3.4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for transkribus-metagrapho-api 0.3.4
File Interpreter ABI Platform Actions
transkribus_metagrapho_api-0.3.4-py3-none-any.whl Python 3 none any Details for transkribus_metagrapho_api-0.3.4-py3-none-any.whl

Total release size: 45.2 kB

Release files / transkribus_metagrapho_api-0.3.4.tar.gz

Download URL transkribus_metagrapho_api-0.3.4.tar.gz
Size 21.6 kB
Tags Source
SHA-256 checksum
How to use checksums
ed8043f275708c65532817aafb4f079fc7f297023d87282eba9ca24c07e4fce0
BLAKE2b-256 checksum
How to use checksums
d79d1ebd4b2c22049c1fc1e0746f696d68f9305a560f8d2806ce9c587619ef81
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.17

Release files / transkribus_metagrapho_api-0.3.4-py3-none-any.whl

Download URL transkribus_metagrapho_api-0.3.4-py3-none-any.whl
Size 23.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bd571667cb8cc6e7e72630abecba5b897ebd0477eff8c8505b2fc12aa98e4f25
BLAKE2b-256 checksum
How to use checksums
d5527cfbaf6c6160a509630ba4de37a31083c9556e0f372fff499058a1dbf18d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.17

Security for transkribus-metagrapho-api 0.3.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page