Skip to main content

Davix H2I Python SDK (davixlabs-h2i)

Official client for the Davix H2I API: images, PDFs, documents, data and AI tools. Every method, field list, enum and error code is generated from the same API contract as the server.

Install

Python 3.8 or newer, no other packages.

pip install davixlabs-h2i

Use

import os
from davix_h2i import H2I, ErrorCodes, DavixH2IError

h2i = H2I(os.environ["DAVIX_H2I_API_KEY"])
try:
    result = h2i.images.resize({"images": "photo.jpg", "width": 800})
    h2i.download(result.files()[0], dest="photo-800.jpg")
except DavixH2IError as error:
    print(error.code, error.hint, error.request_id)

What it does for you

  • Key safety: the API key is only sent as a header, is never printed, and never follows a redirect or goes to a download address.
  • Retries: only failures that are safe to repeat; one Idempotency-Key per call, reused by its retries, so a retry never bills twice.
  • Errors: every error carries the API's code, status, hint, details and request id.
  • Files: a plain text value is read from disk only for a field the API defines as a file.
  • New endpoints: the generic request method reaches public /v1/ paths this version does not know yet.
  • Metadata: each endpoint's schema (types, limits, defaults, allowed values) with an optional check before sending.

Options of one call are keyword arguments: h2i.images.resize(params, idempotency_key="order-42", timeout=120). Tests: python -m unittest discover -s tests.

Help

Developer guide · h2i-support@davixlabs.io

Metadata

Release files for davixlabs-h2i 1.2.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 davixlabs-h2i 1.2.1
File Size Uploaded Provenance Actions
davixlabs_h2i-1.2.1.tar.gz 488.9 kB With provenance Details for davixlabs_h2i-1.2.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for davixlabs-h2i 1.2.1
File Interpreter ABI Platform Actions
davixlabs_h2i-1.2.1-py3-none-any.whl Python 3 none any Details for davixlabs_h2i-1.2.1-py3-none-any.whl

Total release size: 982.0 kB

Release files / davixlabs_h2i-1.2.1.tar.gz

Download URL davixlabs_h2i-1.2.1.tar.gz
Size 488.9 kB
Tags Source
SHA-256 checksum
How to use checksums
7924f3e97259442f27b8386bb311585f53742a15fd61c473ea7e2a3a0626b3d2
BLAKE2b-256 checksum
How to use checksums
7fed4806fea4a58787bdae9dea97e968a40afe233faee691f5dcb30fc30e5511
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 Dec 5, 2026.

Transparency log

Release files / davixlabs_h2i-1.2.1-py3-none-any.whl

Download URL davixlabs_h2i-1.2.1-py3-none-any.whl
Size 493.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f65baeae87133260c5ef9ebd8e5f0b59e8eb66884cd2991c3db1c2768f252e92
BLAKE2b-256 checksum
How to use checksums
e1c6f964a5d50c83758dcc128b0914244af800c9da1ff09a212a79b09a7d5e05
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 Dec 5, 2026.

Transparency log

Security for davixlabs-h2i 1.2.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 davixlabs_h2i-1.2.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 Dec 5, 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.

Release history Release notifications | RSS feed

This release

1.2.1 This release

2 release files Full provenance

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