Skip to content

Poma is deprecated and will be removed in a future SDK version. Use PrimeCut for all new code.

The migration is mostly a method rename plus a return-type improvement.

Method mapping

Legacy PomaRecommended PrimeCut
Poma.start_chunk_file(...)PrimeCut.submit(...)
Poma.get_chunk_result(...)PrimeCut.poll(...)
Poma.unpack_poma_archive(...)PomaArchive.unpack()
Poma.extract_chunks_and_chunksets_from_poma_archive(...)PomaArchive.unpack()
Poma.create_cheatsheet(...)PrimeCut.create_cheatsheet(...)
Poma.create_cheatsheets(...)PrimeCut.create_cheatsheets(...)

Before

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)

After

python
from poma import PrimeCut

client = PrimeCut()
result = client.ingest("example.pdf", show_progress=True)

Main behavior change

Poma.get_chunk_result(...) returns dictionaries that contain chunk and chunkset data.

PrimeCut.ingest(...) returns typed objects through PomaResult.