Skip to content

Use the eco methods when you want the SDK to target the eco ingestion endpoints.

One-call flow

python
from poma import PrimeCut

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

Two-step flow

python
from poma import PrimeCut

client = PrimeCut()
job_id = client.submit("example.pdf", eco=True)
result = client.collect(job_id, show_progress=True)

The method names map directly:

Standard flowEco flow
submit(...)submit(..., eco=True)
ingest(...)ingest_eco(...)

submit_eco(...) still exists as a deprecated compatibility alias.

Collection behavior stays the same: collect(...) prefers SSE and falls back to polling when needed.