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.1

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

Built distribution (wheel)

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

Total release size: 16.1 kB

Release files / opaige-1.0.1.tar.gz

Download URL opaige-1.0.1.tar.gz
Size 7.4 kB
Tags Source
SHA-256 checksum
How to use checksums
736821f8d37b0d844f334364ebed5b3ff3c8485ef83d7c23ad1770c766bf777e
BLAKE2b-256 checksum
How to use checksums
8ba4cf00a4176a8afd082f4ee79d9c9161b5bdd6c7928116d4a8acd0bb256785
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.1-py3-none-any.whl

Download URL opaige-1.0.1-py3-none-any.whl
Size 8.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d9146653af3b5f2b9535be0ef44776665ffeb28a65c74e6a6291eba54aa8982b
BLAKE2b-256 checksum
How to use checksums
1f112054ec414ae467b573b5a40a0b6edc51754887ab2a3357d8c388f29db88a
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.1

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