Skip to main content

dcd-storage-client (Python SDK)

Official Python Client SDK for DevCloudDesk Storage Engine.

High-performance, Cloudinary-compatible dynamic image transformations, uploads, and media management backed by your DevCloudDesk storage clusters.


📦 Installation

pip install dcd-storage-client

(Zero required external dependencies — works out-of-the-box with standard Python 3.8+!)


🚀 Quickstart

1. Initialize Client

from dcd_storage_client import StorageClient, BucketClient

storage = StorageClient(
    endpoint="http://YOUR_SERVER_IP:7100",  # Or custom domain: https://storage.yourdomain.com
    api_key="dcd_key_live_xxxxxxxxxxxx",    # API key from DevCloudDesk dashboard
)

2. Upload Files

Upload from a filepath or binary stream:

# Upload local file
asset = storage.upload("profile.png", folder="avatars")

print("Public ID:", asset["publicId"])
print("Original CDN URL:", asset["url"])

Upload from memory or bytes:

import io

image_bytes = b"..." # raw bytes
asset = storage.upload(
    file=image_bytes,
    folder="reports",
    filename="invoice.pdf"
)

3. Dynamic URL Transformations

Generate on-the-fly resized, cropped, and format-negotiated URLs:

# Generate optimized avatar URL
avatar_url = (
    storage.url(asset["publicId"])
    .resize(width=400, height=400, crop="fill")
    .format("webp")
    .quality(85)
    .blur(5)
    .to_string()
)

print(avatar_url)
# => http://YOUR_SERVER_IP:7100/v1/image/w_400,h_400,c_fill,f_webp,q_85,e_blur_5/avatars/user-123.webp

4. Delete Assets

storage.delete(asset["publicId"])

📜 License

MIT © DevCloudDesk

Metadata

Release files for dcd-storage-client 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dcd-storage-client 1.0.0
File Size Uploaded
dcd_storage_client-1.0.0.tar.gz 6.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for dcd-storage-client 1.0.0
File Interpreter ABI Platform
dcd_storage_client-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 14.3 kB

Release files / dcd_storage_client-1.0.0.tar.gz

Download URL dcd_storage_client-1.0.0.tar.gz
Size 6.8 kB
Tags Source
SHA-256 checksum
How to use checksums
a989732b11fb67badb000d2149fe4da66e892fd5418ef94a4294d32b205b3995
BLAKE2b-256 checksum
How to use checksums
02178de40d80c08f9615d800c72fc93c81721e5a1ddd89206cf2f983dc16644c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / dcd_storage_client-1.0.0-py3-none-any.whl

Download URL dcd_storage_client-1.0.0-py3-none-any.whl
Size 7.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e6679f66c3cb9cb7af45caa3ccdaf7d13ed011637530b40755e69629e6279002
BLAKE2b-256 checksum
How to use checksums
316d27795bfdb1531bb52324284052bfc61d575adbe01afc61757c4f03771963
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files

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