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

Built distribution (wheel)

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

Total release size: 19.3 kB

Release files / opaige-2.0.0.tar.gz

Download URL opaige-2.0.0.tar.gz
Size 9.3 kB
Tags Source
SHA-256 checksum
How to use checksums
2958d65c1f423ea9068f2305e49557dc320f4d21bbb3f6555b13396b3eb5522b
BLAKE2b-256 checksum
How to use checksums
c677d964d46fe9afcc4bbf2a109820416ff7cfe0326e3c9ad86399fb88ac7d46
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.0.0-py3-none-any.whl

Download URL opaige-2.0.0-py3-none-any.whl
Size 10.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4115f359bd8f199ed35b648eb2ef4775256385e54925cff7d380c7dba43b9e5e
BLAKE2b-256 checksum
How to use checksums
7ff662c5401c3296b6566499677ee0a83ae57bf671172b0ae5501709263ba21a
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.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