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, is never billed and never touches live data. Bookings, students and appointments it sends are kept as test data.

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 2.1.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 2.1.0
File Size Uploaded Provenance Actions
opaige-2.1.0.tar.gz 10.1 kB Without provenance Details for opaige-2.1.0.tar.gz

Built distribution (wheel)

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

Total release size: 20.7 kB

Release files / opaige-2.1.0.tar.gz

Download URL opaige-2.1.0.tar.gz
Size 10.1 kB
Tags Source
SHA-256 checksum
How to use checksums
08a5c2996b346ad5c9001f14faab5be7260eb9b1113b2d9583da20b0e11d5065
BLAKE2b-256 checksum
How to use checksums
5e769e29ea9dcae0319bdd7e870cb922be0a49e5b382d6909a39eb35cc9e6b54
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.6

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

Download URL opaige-2.1.0-py3-none-any.whl
Size 10.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
79c74fc9f63692d54dbc5e6ae245df396df33cccc9b38ce6229a8f248e7ed25a
BLAKE2b-256 checksum
How to use checksums
9dc12768c0b5a98c2cd693b0ba5b92a8070172e7f493224a2b1e60bfe2336f09
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.6

Security for opaige 2.1.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