Pomais deprecated and will be removed in a future version. UsePrimeCutfor new work.
python
from poma import PomaPoma remains available for compatibility with older integrations.
Constructor
python
Poma(
api_key: str | None = None,
*,
timeout: float = 600.0,
client: httpx.Client | None = None,
)Legacy methods
start_chunk_file
python
start_chunk_file(
file_path,
*,
base_url: str | None = None,
show_progress: bool = False,
) -> dict[str, Any]Submit a file and return a dictionary that includes the job ID.
get_chunk_result
python
get_chunk_result(
job_id: str,
*,
initial_delay: float = 5.0,
poll_interval: float = 3.0,
max_interval: float = 15.0,
show_progress: bool = False,
download_dir = None,
filename: str | None = None,
) -> dict[str, Any]Poll until completion and return unpacked dictionary data.
unpack_poma_archive
python
unpack_poma_archive(
poma_archive_data: bytes | None = None,
poma_archive_path = None,
) -> dict[str, Any]Unpack archive data without using PomaArchive.
extract_chunks_and_chunksets_from_poma_archive is a backwards-compatible alias.
create_cheatsheet
Returns a single cheatsheet string.
create_cheatsheets
Returns one cheatsheet per document.
For the recommended migration path, see Migrate from Poma to PrimeCut.