Python SDK for Diffusion¶
The Diffusion Python library allows Python applications to interact with a Diffusion server.
Supported Python Versions¶
The Diffusion Python SDK 6.13.0 officially supports the following interpreters:
Supported Interpreters:
- CPython 3.10.20 or later
- CPython 3.11.0 or later
- CPython 3.12.0 or later
- CPython 3.13.0 or later
- CPython 3.14.0 or later
Supported Platforms:
- macOS 10.15 or later (Intel)
- macOS 11 or later (Apple silicon)
- Windows 64-bit (x86-64)
- Linux x86-64 distributions supported by the manylinux_2_28 binary wheel standard (glibc 2.28 or later)
We recommend using the latest available patch version of the Python interpreter.
Installing the Diffusion client¶
The easiest way to install the latest version is:
It is possible to install a specific version, for example if you need one that works with the previous version of the Diffusion server:
Alternatively, the package is also available in the clients directory of the Diffusion installation:
Current Capabilities¶
- Session:
- Establish a session
- Send user ping
- Receive system ping
- Session factory
- SSL Context
- Retry strategies
- Messaging:
- Register request handler
- Send request to path
- Send request to session
- Send request to filter
- Register filter message stream
- Control:
- Session trees
- Topic metrics
- Session metrics
- Topics:
- Topic subscriptions
- Topic creation
- Topic creation with initial topic value
- Topic removal
- Topic stream handlers
- Topic update
- Topic constraints
- Fetch queries
- Time Series
- Edit
- Append
- Range queries