Generating Python proxy

Python

Generate a Python client from the OpenAPI specification.


Generate client using openapi-python-client

openapi-python-client generate \
  --url https://mapi-sandbox.unimaze.com/swagger/v1/swagger.json \
  --output-path ./unimaze_python_client

Authentication example

from unimaze_python_client import Client

client = Client(
    base_url="https://mapi-sandbox.unimaze.com",
    headers={
        "Authorization": "Bearer <access-token>"
    }
)