Skip to main content

Opaige for Python

The Opaige API from Python 3.8 or later. Standard library only.

import os
from opaige import Opaige, OpaigeError, verify_webhook

opaige = Opaige(os.environ["OPAIGE_KEY"])

answer = opaige.check_requirements(passport="IN", destination="FR")

opaige.send_bookings(body={"bookings": [{
    "ref": "QX7K2M", "flight": {"number": "OP412", "destination": "GB", "depart_date": "2026-12-18"},
    "passengers": [{"ref": "QX7K2M-1", "passport": "IN", "residence": "AE"}],
}]})

review = opaige.review_file(file=pdf_bytes, fields={"destination": "FR", "purpose": "business"}, idempotency_key="file-8841")

Every method is one API call, named as in the API reference, in snake_case. JSON goes in body; a PDF comes back as bytes. A query value that is a Python word gets an underscore: list_invoices(from_="2026-10-01").

Errors raise OpaigeError with status, code, request_id (quote it to support) and details. Retries: reads, and writes sent with an idempotency_key, are tried again after 429 and 5xx answers (max_retries, default 2). Sandbox: a sandbox key answers in the same shape and saves and bills nothing.

Webhooks

event = verify_webhook(request.get_data(), request.headers.get("Opaige-Signature"), os.environ["OPAIGE_WEBHOOK_SECRET"])

Pass the raw body: a parsed and re-serialised body no longer matches its signature.

Metadata

Release files for opaige 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for opaige 1.0.0
File Size Uploaded Provenance Actions
opaige-1.0.0.tar.gz 7.3 kB Without provenance Details for opaige-1.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for opaige 1.0.0
File Interpreter ABI Platform Actions
opaige-1.0.0-py3-none-any.whl Python 3 none any Details for opaige-1.0.0-py3-none-any.whl

Total release size: 15.9 kB

Release files / opaige-1.0.0.tar.gz

Download URL opaige-1.0.0.tar.gz
Size 7.3 kB
Tags Source
SHA-256 checksum
How to use checksums
adf5ccdefccb54ce9d20310cd98f89be787916c9aed0f260114024b3199d35a6
BLAKE2b-256 checksum
How to use checksums
504df12df3937d98b4733b1ac956177123400288b5be7f2d04c047ae2ac04cd4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.6

Release files / opaige-1.0.0-py3-none-any.whl

Download URL opaige-1.0.0-py3-none-any.whl
Size 8.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8b7aaa726ae0619816c41efaf1b63f1072fc43d0cb3a3bf2da457f8b03b2a882
BLAKE2b-256 checksum
How to use checksums
5dbff01314e37aa60139f22b93e5550f14a820712d20ea88569233af91c4c41d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.6

Security for opaige 1.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page