Transkribus Processing API Client
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.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| transkribus_metagrapho_api-0.3.3.tar.gz | 21.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| transkribus_metagrapho_api-0.3.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 45.1 kB
Release files / transkribus_metagrapho_api-0.3.3.tar.gz
| Download URL | transkribus_metagrapho_api-0.3.3.tar.gz |
|---|---|
| Size | 21.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
245603db8dd45a7152c99d480e7562a07c2cdcecee951aec354e0703d010167f
|
|
BLAKE2b-256 checksum How to use checksums |
0ab346011863e3b6a764b8fa6ce8345d11bda1abea7bd7da3aa6cf380e4a9c5d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.16
|
Release files / transkribus_metagrapho_api-0.3.3-py3-none-any.whl
| Download URL | transkribus_metagrapho_api-0.3.3-py3-none-any.whl |
|---|---|
| Size | 23.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
168c03e9b9cd0b7c0e82a56a69d82dac6b15639c785af496902a25e02437cea2
|
|
BLAKE2b-256 checksum How to use checksums |
4afe380cdc8c6f79e2426b60d7f2b3d3fc098f95a6650b7b935cb4b7fee075d3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.16
|