imazeo
Official server-side Python SDK for Imazeo.
| Package | imazeo |
| SDK version | 1.0.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 |
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"},
})
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 viaapi_version) - SDK SemVer:
1.0.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
Media contract update — 2026-10-02
Barcode generation requires type and string content; optional format is
png or svg (default png), and includeText is a boolean (default true).
The old data, output and includetext fields are removed before release.
PDF merge sends repeated file parts in order. Omit optional fields for defaults;
JSON numbers/booleans are not coerced and top-level optional nulls are rejected.
Barcode scale and image hue are integers. Methods retain language-specific names.
The reviewed API-key-only contract is bundled in openapi/backend.json.
client.barcodes.generate({'type': 'code128', 'content': 'IMAZEO-2026', 'format': 'svg', 'includeText': False})
Metadata
Release files for imazeo 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| imazeo-1.0.0.tar.gz | 28.1 kB | Without provenance | Details for imazeo-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| imazeo-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for imazeo-1.0.0-py3-none-any.whl |
Total release size: 58.5 kB
Release files / imazeo-1.0.0.tar.gz
| Download URL | imazeo-1.0.0.tar.gz |
|---|---|
| Size | 28.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7bf2d8bb30210dff795d1ff3071b51d31dd5062d2bab0e9b6480cbc174a829a2
|
|
BLAKE2b-256 checksum How to use checksums |
df58f402117dd5add8315e4876294f6cb33d48fd52c1d86a16b1b56407f6c1fc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.7
|
Release files / imazeo-1.0.0-py3-none-any.whl
| Download URL | imazeo-1.0.0-py3-none-any.whl |
|---|---|
| Size | 30.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
eb7dc9b1430a50fc2bb0bffef274828ae2c1d3ccada07d90cdc862f43473b922
|
|
BLAKE2b-256 checksum How to use checksums |
7601648522a6a3bbb2fb97d192df8e155a9b0c583c50c69b206ff28600b86a46
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.7
|
Security for imazeo 1.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.