Installation
This guide will show how to install the required components to start using QDL:
- Software Development Kit (SDK), necessary for managing data using Python.
- Command-line interface (CLI), required for managing scopes, users and groups via the command-line.
- Daemon, required by the SDK and CLI to interact with QDL.
QDL SDK and CLI
Python 3.10 or higher is required for both packages and can be installed using pip or a similar package manager. For the SDK:
Note
The index URL is required because the packages are stored in a private GitLab registry, instead of PyPI.
The QDL CLI can be installed using pip, but then the CLI would only work when the virtual environment is active.
To install the CLI as a tool you can use uv (or `pipx):
uv tool install qdl-cli --index-url https://gitlab.com/api/v4/projects/66914457/packages/pypi/simple
The tool is now installed in its own virtual environment and added to your PATH.
You can also use uv to upgrade to a new version if necessary:
QDL Daemon
The daemon is used by the SDK and CLI to upload and download files in the background asynchronously, so users are not blocked when transferring files from and to QDL. It also manages the access tokens used to authorize data requests. Unlike the SDK and CLI, it is installed as a separate application. Windows, macOS, Ubuntu, and Debian platforms are supported, for which the installer can be found here.
Windows
- Open the installer.
- Follow the installation instructions.
- Uninstallation can be done like any other Windows program.
Note
Each user needs to install the daemon separately.
Mac
- Open the installer.
- Note that you will be stopped to install the application, because Mac cannot verify the installer. Click 'Done'. You now need to go to 'System settings' -> 'Privacy & Security' and scroll down to the 'Security' paragraph, click 'Open Anyway' and log in with local admin credentials to allow the installation.
- Follow the installation instructions.
- To uninstall, go to the application folder and double-click the uninstaller script. Note that you will need admin privileges. A terminal window will open and prompt you for your password. If successful, the message "Uninstallation successful!" will be printed in the console.
Linux
-
Run the following command from the download location:
-
Compared to the other platforms, the QDL Daemon service has to be manually started (and terminated):
-
To stop or restart the QDL Daemon:
-
To uninstall, run the following command:
If successful, the message "Uninstallation successful!" will be printed in the console.
-
Terminate the service:
Note
The installation is done system-wide, but each user needs to start and terminate the daemon service. Also, for versions =< 1.0.0, the service is called "qdl", and not "qdl-daemon".
```
Python
If none of the above installers for your platform work for whatever reason
(or you prefer not to install it as an application running as a background service), it is also possible to install
the QDL daemon from the python package. You can install the QDL daemon as a 'CLI tool', e.g. using uv
(pipx also works):
uv tool install qdl-daemon --index-url https://gitlab.com/api/v4/projects/66914457/packages/pypi/simple
Moreover, you can use uv to upgrade the QDL daemon by:
Now you can run the QDL daemon (called qdl-daemon) in the terminal:
% qdl-daemon
INFO: Started server process [11937]
INFO: Waiting for application startup.
INFO: Application startup complete.
INFO: Uvicorn running on http://127.0.0.1:5500 (Press CTRL+C to quit)
systemctl for Linux, Task manager or NSSM for Windows and launchctl for Mac).
Post-installation
The application does not open in a separate window as it is a background service. To authorise the daemon to access QDL, you can log using the CLI:
The default web browser will be opened, and you will be asked to log in using your institutional account. When the login is successful, the CLI will report you are logged in, and you can retrieve your user information:
Further reading
With the QDL up and running, you can follow the quickstart if you would like an introduction to the user functionalities or read the scope admin quickstart for scope admins. Note that if you are here to set up a lab with a measurement PC, you are probably also interested in the installation and how-to of the sync service which you can read here.