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
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.0.1
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.1.tar.gz | 27.3 kB | With provenance | Details for imazeo-1.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| imazeo-1.0.1-py3-none-any.whl | Python 3 | none | any | Details for imazeo-1.0.1-py3-none-any.whl |
Total release size: 57.8 kB
Release files / imazeo-1.0.1.tar.gz
| Download URL | imazeo-1.0.1.tar.gz |
|---|---|
| Size | 27.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
43979e244cf1e086a17f5444df6ae0c2b5d37668250326cf8486a61fe3c2cb3d
|
|
BLAKE2b-256 checksum How to use checksums |
4fa180c2fb512925c9f7fcd6c3e271ef60e7ae54316b779814e425a877eabb93
|
| 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 11, 2026.
Transparency logRelease files / imazeo-1.0.1-py3-none-any.whl
| Download URL | imazeo-1.0.1-py3-none-any.whl |
|---|---|
| Size | 30.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
12f95aba9c664541137690370f726bb7726186b55616e64dd3baa5aa06b3ac73
|
|
BLAKE2b-256 checksum How to use checksums |
91027a9c4dab13d6e8a3bebfbb4b9f421bebcd4d092529af13103df459dfe688
|
| 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 11, 2026.
Transparency logSecurity for imazeo 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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for imazeo-1.0.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 11, 2026.
Transparency logA 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.