Skip to main content

rahcp

Async Python SDK & CLI for the Hitachi Content Platform (HCP) Unified API — S3-compatible object storage, IIIF image ingestion, and Transkribus exports, with resumable, parallel bulk transfers.

Everything ships in one package. Data never flows through an API server: the SDK uses presigned URLs for direct, parallel, crash-resumable transfers.

Install

pip install rahcp                 # client, CLI, IIIF, Transkribus, tracker
pip install "rahcp[validate]"     # + pre-upload image validation (Pillow)
pip install "rahcp[etl]"          # + NATS JetStream pipelines
pip install "rahcp[alto]"         # + Transkribus PAGE->ALTO conversion (ocrd)
pip install "rahcp[postgres]"     # + Postgres transfer-tracker backend
pip install "rahcp[all]"          # everything

Quick start

Python

import asyncio
from pathlib import Path
from rahcp import HCPClient

async def main():
    # reads HCP_ENDPOINT / HCP_USERNAME / HCP_PASSWORD / HCP_TENANT
    async with HCPClient.from_env() as client:
        await client.s3.upload("my-bucket", "data/file.jpg", Path("file.jpg"))
        objects = await client.s3.list_objects("my-bucket", prefix="data/")
        print(objects)

asyncio.run(main())

CLI

rahcp s3 upload-all my-bucket ./scans --workers 20 --include '*.jpg'
rahcp iiif download-batches batches.txt -o ./images/ --workers 10
rahcp transkribus upload 1944790 my-bucket --prefix medieval/ --archive-dir /data
rahcp ns list my-tenant

What's inside rahcp

Module Purpose
rahcp_client Async HCP client — auth, S3, MAPI, presigned URLs, bulk up/download
rahcp_tracker Resumable transfer state tracking (SQLite; Postgres via [postgres])
rahcp_iiif Parallel IIIF image downloader with resumable tracking
rahcp_transkribus Transkribus collection exporter (PAGE/ALTO XML + images)
rahcp_validate Pre-upload image validation ([validate])
rahcp.cli The rahcp command-line interface

Import names are stable: from rahcp_client import HCPClient, from rahcp_iiif import download_batch, from rahcp_transkribus import export_collection.

Licensed under Apache-2.0.

Metadata

Release files for rahcp 0.1.1

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

Source distribution (sdist)

Source distribution for rahcp 0.1.1
File Size Uploaded Provenance
rahcp-0.1.1.tar.gz 79.3 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for rahcp 0.1.1
File Interpreter ABI Platform
rahcp-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 173.2 kB

Release files / rahcp-0.1.1.tar.gz

Download URL rahcp-0.1.1.tar.gz
Size 79.3 kB
Tags Source
SHA-256 checksum
How to use checksums
4b2becf283d202c94cf1f50c6bca338d98b6724c432e1c647f5cc4313e27fbf0
BLAKE2b-256 checksum
How to use checksums
9867f8cb38465d7f0a6ff84ef3ac25ab3917cc4375d1a7c8cca416fc2669a2bf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.10.9 {"installer":{"name":"uv","version":"0.10.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / rahcp-0.1.1-py3-none-any.whl

Download URL rahcp-0.1.1-py3-none-any.whl
Size 93.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
46337834ea405e7f12702df2f4377854a126da930e9d7bbee7885c26c7785dbd
BLAKE2b-256 checksum
How to use checksums
6f050193a29bd0ddc806329370bf1c880f86307f117356db80dc42e9961dcee1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.10.9 {"installer":{"name":"uv","version":"0.10.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for rahcp 0.1.1

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.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files No provenance

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