Skip to main content

imazeo

Official server-side Python SDK for Imazeo API v1. Transform images, work with PDFs, render Office documents and public websites, generate QR codes and barcodes, and manage saved outputs within an Imazeo project.

Requires Python 3.10+. PyPI · API documentation

Install

pip install imazeo

Create a project API key in the Imazeo customer portal and set IMAZEO_API_KEY in your server environment. The SDK connects to https://api.imazeo.com and discovers the project for the key by default.

Quick start

import os
from pathlib import Path

from imazeo import Imazeo

with Imazeo(api_key=os.environ["IMAZEO_API_KEY"]) as client:
    qr = client.qr.generate({
        "content": "https://imazeo.com",
        "format": "png",
        "size": 256,
    })
    Path("qr.png").write_bytes(qr.data)

API keys

Keep the project key in server-side configuration. The SDK sends it in X-API-Key and refuses redirects by default to keep it on the configured origin.

Resources

Available tools and limits depend on your project plan.

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://imazeo.com/examples/assets/field-notebook.png",
    "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

  • API path version: v1 (configured via api_version)

Imazeo.api_compatibility() reports supported API versions.

Integration guide

See the integration guide for image processing, multi-page PDF responses, conversion jobs, dynamic QR, pagination and output retention.

Development

pip install -e ".[dev]"
pytest

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})

License

MIT

Metadata

Release files for imazeo 1.1.2

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.2
File Size Uploaded Provenance Actions
imazeo-1.1.2.tar.gz 41.1 kB With provenance Details for imazeo-1.1.2.tar.gz

Built distribution (wheel)

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

Total release size: 89.0 kB

Release files / imazeo-1.1.2.tar.gz

Download URL imazeo-1.1.2.tar.gz
Size 41.1 kB
Tags Source
SHA-256 checksum
How to use checksums
da0778d13c857421452d896db22c493c9b2abf1ef0e7159b321fd8c477f37d32
BLAKE2b-256 checksum
How to use checksums
b748e8e38d97d57449b48fdc684389c43545ed14b4f7a4d0abb4556e35f2b313
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 30, 2026.

Transparency log

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

Download URL imazeo-1.1.2-py3-none-any.whl
Size 47.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3c391ebeb32acba8f238a9cc030eff4a19ced80f5883a02fe709bcc5bde2944b
BLAKE2b-256 checksum
How to use checksums
7ed1cae5a9d56f76978cb5093bf6787cd487d4fd812306a60a81fa60ee9fd5a2
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 30, 2026.

Transparency log

Security for imazeo 1.1.2

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.2.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 30, 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