Use Poma in this archived v1 SDK line.
python
from poma import Poma
client = Poma()
job = client.start_chunk_file("example.pdf")
result = client.get_chunk_result(job["job_id"], show_progress=True)
print(f"chunks: {len(result['chunks'])}")
print(f"chunksets: {len(result['chunksets'])}")Poma.get_chunk_result(...) returns dictionary data for the completed job.
Save the archive locally
python
from poma import Poma
client = Poma()
job = client.start_chunk_file("example.pdf")
result = client.get_chunk_result(
job["job_id"],
download_dir="store",
filename="example.poma",
show_progress=True,
)This still returns dictionary data. It also saves the downloaded .poma archive to store/example.poma.
Reopen a saved archive
python
from poma import Poma
client = Poma()
result = client.unpack_poma_archive(poma_archive_path="store/example.poma")Continue with chunking jobs and results and archives.