Skip to main content

imazeo

Official server-side Python SDK for Imazeo.

Package imazeo
SDK version 1.1.0
Default API v1
Supported APIs v1
Runtime Python 3.10+ (sync httpx)
Registry PyPI
Source GitHub

Security: Secret API keys (X-API-Key) are for trusted servers only. Do not ship this client with a secret key in browsers or client apps.

Integration contract and learning path: GUIDE.md.

Install

pip install imazeo

Requires Python 3.10+. Create a project API key in the Imazeo Customer portal. Default API origin is https://api.imazeo.com (override with base_url when needed).

Learning path

Read the self-contained integration guide for project/key setup, language examples, PDF response types, pagination, output retention, troubleshooting and production practices.

The default HTTP client refuses redirects so credentials stay on the configured API origin.

Quick start

from pathlib import Path
from imazeo import Imazeo
import os

client = Imazeo(
    api_key=os.environ["IMAZEO_API_KEY"],
    base_url=os.environ["IMAZEO_API_ORIGIN"],  # supplied API origin
    # project_id="…",  # optional; otherwise resolved via /v1/api-key/context
)

qr = client.qr.generate({
    "content": "https://imazeo.com",
    "format": "png",
    "size": 256,
})
Path("qr.png").write_bytes(qr.data)
client.close()

Or use as a context manager:

with Imazeo(api_key=os.environ["IMAZEO_API_KEY"]) as client:
    ctx = client.context.get()
    print(ctx["projectId"], ctx["keyId"])

Authentication

Imazeo(api_key=os.environ["IMAZEO_API_KEY"])

Sends X-API-Key only. Never send Authorization together with an API key (backend rejects that combination).

Resources

Resource Methods
client.context get() → project/key IDs
client.images upload, list (page/limit/q), get, delete, download
client.transforms create, list, get, download (if_none_match → not_modified), delete
client.qr generate
client.barcodes generate
client.pdf info, render, merge, extract
client.credits Quote processing credits for an operation and measurable units
client.operations Get status, look up by kind/key, and recover a temporary result
client.conversions DOCX, XLSX, PPTX and website jobs: capabilities, submit, list, lookup, get, cancel, download and save
client.dynamic_codes Capabilities, create, list, get, edit, scan analytics and CSV export
client.artifacts Save preview bytes, list, get, download and delete private artifacts
client.outputs List project outputs and retrieve counts by type

Upload + transform

image = client.images.upload(
    photo_bytes,
    filename="photo.jpg",
    content_type="image/jpeg",
)

out = client.transforms.create({
    "imageId": image["_id"],
    "mode": "EPHEMERAL",
    "transform": {"width": 1200, "format": "webp", "quality": 85},
})
# out.data → bytes

Remote URL transform

out = client.transforms.create({
    "url": "https://example.com/image.jpg",
    "transform": {"width": 640, "format": "jpeg"},
})

PDF

info = client.pdf.info(pdf_bytes)
page = client.pdf.render(pdf_bytes, {"pages": "1", "format": "png"})
merged = client.pdf.merge([pdf_a, pdf_b])
extracted = client.pdf.extract(pdf_bytes, {"pages": "1,2"})

Errors

from imazeo import ImazeoError, RateLimitError

try:
    client.images.get(image_id)
except RateLimitError as error:
    print(error.code, error.request_id)
except ImazeoError as error:
    print(error.status, error.code, error.message)

Configuration

Option Default Notes
api_key required Secret key
project_id from context Path project
base_url https://api.imazeo.com Origin only; /v1 stripped if present
api_version v1 Allowlisted
timeout_ms 60000 PDF uses 120s; QR/barcode 30s
app_name — Appended to User-Agent
transport — Optional httpx.BaseTransport (tests)

API version vs package version

  • API path version: v1 (configured via api_version)
  • SDK SemVer: 1.1.0

Imazeo.api_compatibility() reports supported API versions.

Not included

Portal JWT APIs (projects CRUD, API-key management, usage, plans, tickets, auth), admin APIs, tool-artifacts, outputs, and browser secret-key usage.

Development

pip install -e ".[dev]"
pytest

License

MIT

Barcode and PDF notes

Barcode generation requires type and string content. Optional format is png or svg (default png); includeText defaults to true. PDF merge uploads files in order as repeated multipart file parts. Omit optional fields to use API defaults. Integer fields such as barcode scale and image hue must be integers.

client.barcodes.generate({'type': 'code128', 'content': 'IMAZEO-2026', 'format': 'svg', 'includeText': False})

Metadata

Release files for imazeo 1.1.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 imazeo 1.1.1
File Size Uploaded Provenance Actions
imazeo-1.1.1.tar.gz 41.1 kB With provenance Details for imazeo-1.1.1.tar.gz

Built distribution (wheel)

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

Total release size: 89.2 kB

Release files / imazeo-1.1.1.tar.gz

Download URL imazeo-1.1.1.tar.gz
Size 41.1 kB
Tags Source
SHA-256 checksum
How to use checksums
2719df7022e93217e5518eec2e7e98758b7908d22ae02395284f9d8e9b739258
BLAKE2b-256 checksum
How to use checksums
7cc50774ed87ecdc205a22d498ef077c419cd9528d2df77fea26d687d3d2553e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 22, 2026.

Transparency log

Release files / imazeo-1.1.1-py3-none-any.whl

Download URL imazeo-1.1.1-py3-none-any.whl
Size 48.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
db6d681c36c2119ec29101f5f7f9a724ebb645ffafb4f43b0e6b6104d3ff846c
BLAKE2b-256 checksum
How to use checksums
15d4050fb2b6e354523b21af04028d88eda1d19c5dcb181093725bdd8532f16b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 22, 2026.

Transparency log

Security for imazeo 1.1.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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for imazeo-1.1.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 22, 2026.

Transparency log

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