Skip to content

Installation – DaaS-IoT Python SDK

The DaaS-IoT Python SDK is distributed through PyPI as pydaasiot, which provides the official Python bindings for LibDaaS.

Two installation methods are available:

  • Install via PyPI (recommended)
  • Build from source with CMake (advanced use only)

The easiest and fastest way to use the SDK is to install the official PyPI package.

python -m venv .venv
source .venv/bin/activate
# On Windows: .venv\Scripts\activate

1.2. Install the SDK

pip install pydaasiot

This installs:

  • the Python API (pydaasiot)
  • the native extension module (_core)
  • all required dependencies and platform-specific binaries

1.3. Verify installation

python -c "import pydaasiot; print(pydaasiot.__version__)"

2. Build From Source (Advanced)

This option is intended only for development, CI integration, or custom builds.

The project uses CMake + pybind11 and automatically downloads the correct version of LibDaaS for your platform.

2.1. Install prerequisites

Linux example:

sudo apt update
sudo apt install -y python3-dev python3-pip cmake build-essential
pip install pybind11

Windows requires MSVC + Python + pybind11.

2.2. Configure and build

cmake -S . -B build -DCMAKE_BUILD_TYPE=Release
cmake --build build --config Release

CMake will automatically:

  • download LibDaaS for your platform
  • verify integrity (MD5)
  • build the native extension module _core

2.3. Install the extension into the Python package

cmake --install build --prefix <your_python_env>

After installation:

python -c "import pydaasiot; print(pydaasiot.__version__)"

Notes

  • PyPI wheels are prebuilt and require no compilation.
  • The source build should be used only if you need a custom or development version.
  • The Python SDK is fully cross-platform (Linux & Windows).