Skip to main content

Eclipse Ditto Python Client

Project description

Eclipse Ditto Client

Eclipse Ditto Project - https://eclipse.dev/ditto/index.html

This repository is the python client generated using Microsoft Kiota (https://github.com/microsoft/kiota-python)

Install

uv add ditto-client

Running Ditto

A sample docker compose is provided as part of this repository.

You must run the ditto services outside the devcontainer as they consume lot of resources.

# outside your devcontainer (i.e. on your host)
# at <your_path>/ditto-client dir
docker compose -f assets/ditto/docker-compose.yaml up

Usage

auth_provider = BasicAuthProvider(user_name=_USERNAME, password=_PASSWORD)

request_adapter = HttpxRequestAdapter(auth_provider)
request_adapter.base_url = "http://host.docker.internal:8080"

ditto_client = DittoClient(request_adapter)

response = await ditto_client.api.two.things.get()

Default setup for Ditto uses Ngix with basic authentication. A custom authentication provider has been included in the library to support it. See BasicAuth Provider.

See examples/basic.py for the full usage

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ditto_client-0.2.0.tar.gz (196.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ditto_client-0.2.0-py3-none-any.whl (392.9 kB view details)

Uploaded Python 3

File details

Details for the file ditto_client-0.2.0.tar.gz.

File metadata

  • Download URL: ditto_client-0.2.0.tar.gz
  • Upload date:
  • Size: 196.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for ditto_client-0.2.0.tar.gz
Algorithm Hash digest
SHA256 ed0a7324fb9a565959532c095821a69d393aa1e6e2ddd4855cf5b5e702ad6fa7
MD5 54500bf2d26a702ad80e9c28215d2c41
BLAKE2b-256 cd1f5f319f476810673310ac174586b73cafc4cf6e12108cae8ec4823f5a22a0

See more details on using hashes here.

Provenance

The following attestation bundles were made for ditto_client-0.2.0.tar.gz:

Publisher: publish.yaml on ksachdeva/ditto-client

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file ditto_client-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: ditto_client-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 392.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for ditto_client-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 cb2ad7545c7d3ee20f10e038e6bfafa428d5c64fcc72aa0ce80ae4d39509494a
MD5 2753e81d24a6e3df1741dcd3d24ebcc5
BLAKE2b-256 2a01ba5415f4e27a452152e29833a65300a25f6e61a39eaccf438601dc5ab09d

See more details on using hashes here.

Provenance

The following attestation bundles were made for ditto_client-0.2.0-py3-none-any.whl:

Publisher: publish.yaml on ksachdeva/ditto-client

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page