Skip to content

Types

The Python SDK exposes the types below. Import any of them from the top-level poli_page module:

from poli_page import (
RenderInput,
DocumentDescriptor,
AsyncDocumentDescriptor,
DocumentPreviewResult,
Thumbnail,
ThumbnailOptions,
RetryEvent,
)

Render a stored project + template by slug.

Public type exported from poli_page.

Result of client.documents.preview(id) (spec §6.2).

Stored document returned by sync render.document / documents.get.

Stored document returned by async render.document / documents.get.

A single page thumbnail returned by documents.thumbnails (spec §6.3).

Options for client.documents.thumbnails(id, options) (spec §6.3).

Public type exported from poli_page.

Public type exported from poli_page.

Public type exported from poli_page.

Event passed to the on_retry hook before each retry sleep.

Public type exported from poli_page.

Public type exported from poli_page.

For the full field lists on each dataclass and TypedDict, see the source on GitHub.