Python SDK
The officiald3-python-client package provides a high‑level, type‑safe interface to the D3 Business API.
Installation
Quick start
Initialization
api_key(required) – your D3 API key.base_url(optional) – API base URL, default:https://api.dragdropdo.com.timeout(optional) – request timeout in ms, default:30000.headers(optional) – additional headers to send with every request.
File upload
file(required) – file path string.file_name(required) – original file name.mime_type(optional) – MIME type (auto‑detected if omitted).parts(optional) – number of upload parts (auto‑calculated).on_progress(optional) – progress callback.
Supported operations
ext(required) – file extension (e.g.pdf,jpg).action(optional) – specific action (convert,compress, …).parameters(optional) – parameters to validate (e.g.{"convert_to": "png"}).
Create operations
action(required) –"convert" | "compress" | "merge" | "zip" | "share" | "lock" | "unlock" | "reset_password".file_keys(required) – array of file keys from upload.parameters(optional) – action‑specific parameters.notes(optional) – user metadata.