Skip to content

client: pip install decdn — Python package over decdn-client with a huggingface_hub transport #2604

Closed

Description

@thiras

Component

client (decdn-client SDK)

Who it affects

publisher (someone importing content or sponsoring downloads), client (someone running decdn get or the gateway), contributor (developer experience)

Problem

The SDK is a Rust crate. The customer for model and dataset delivery lives in pip: training scripts, notebooks, huggingface_hub, datasets, vllm. For them, a Rust crate is not an SDK. There is no pip install decdn, and the name is free on PyPI as of 2026-10-24.

Proposed solution

A decdn package on PyPI, built from decdn-client with pyo3/maturin, wheels for Linux x86_64/aarch64, macOS and Windows, Python 3.10+:

import decdn

path = decdn.get("decdn:9194…69e5/?ns=1")                 # sponsored or local keystore
for chunk in decdn.stream("decdn:…/model.safetensors"):     # verified bytes as they land
    ...
decdn.quote("decdn:…")                                      # size, rates, estimate

Alternatives considered

  • Subprocess the CLI from Python. Works today (subprocess.run(["decdn","get",…])) and is what a shim would do first; it cannot stream into memory, has no progress API, and needs the binary installed separately. Acceptable as the first commit behind the same API, replaced by bindings.
  • Node/JS first. The browser demo and the installers cover JS users' first run; the model/dataset customer is in Python.

Design scope

  • This proposal changes the protocol, the economics, or the contract surface.

Related

Activity

  1. added
    kind:feature
    prio:medium
    area:client
    on Oct 24, 2026
  2. added theissue type on Oct 24, 2026
  3. self-assigned this
    on Oct 30, 2026
  4. thiras commented on Nov 10, 2026

    @thiras
    ContributorAuthor

    Shipped as the decdn PyPI package: https://github.com/decdn/sdk-python (pip install decdn) — a sync Client + AsyncClient over the gateway's HTTP API, at parity with @decdn/client.

  5. moved this from Backlog to Done in deCDNon Nov 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:clientkind:featureprio:medium

Fields

Priority

None yet

Projects

  • Status
    Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions