Skip to main content

QCI Connect SDK   Mini Server Repository

Miniserver

This python package is used to locally execute the compilers and simulators of the QCI Connect platform of the German Aerospace Center (DLR). It is a component of the full QCI Connect SDK and can interface as a server with the API Client, substituting the QCI Connect platform.

It allows to

  1. locally develop algorithms with the goal to integrate them to the platform,
  2. prototype quickly, and
  3. run algorithms on the local computer using the standard interfaces of the QCI Connect API Client.

Quick Start (Pip Installation)

The miniserver requires Docker to be installed.

  • Run pip install qciconnect-miniserver qciconnect-client
  • Build compiler images that you want to use (see instructions below for building the example compilers included in the miniserver repository)
  • Start the server with the compiler path miniserver -c path_to_compilers_folder
  • Connect API Client with the server as described in the example notebook

Working on Source Code (Dev Mode)

Clone the repository (or download the .tar.gz file), initialize the git submodules, then install dependencies.

We recommend using ultraviolet (installation guide).

git submodule update --init
uv sync
git submodule foreach "uv pip install -e ."

This installs the project, its runtime and development dependencies, and the required qciconnect-common submodule package as an editable local dependency.

Recursive submodule initialization is not required. The qciconnect-common package is resolved from the root checkout below the repository's submodules directory, not from nested submodule checkouts.

You can now activate the .venv in the source directory or use uv to run commands in the .venv, e. g., uv run python my_script.py. Any time uv sync is necessary, script is available within the environment to perform this action and, at the same time, reinstall the submodules. The script can be executed as

update-venv

Using the Miniserver (Dev Mode)

The following steps provide a quick start guide for programmatically interacting with the local development environment.

Build Compiler Image

First, verify that Docker (including the Docker Compose plugin) is installed, then build the compiler step images as follows:

cd deployment/docker-dev
docker compose build --no-cache

Start Miniserver

Next, you’re ready to start the miniserver:

uv sync
source .venv/bin/activate
miniserver

or

uv run miniserver

Troubleshooting

Miniserver

In case you need to restart the miniserver just stop it through CTR+C or

miniserver stop

It could be that miniserver does not restart properly due to compiler-containers still running from previous sections

docker rm -v -f <compiler-container-list>

Metadata

Release files for qciconnect-miniserver 0.7.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for qciconnect-miniserver 0.7.0
File Size Uploaded
qciconnect_miniserver-0.7.0.tar.gz 24.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for qciconnect-miniserver 0.7.0
File Interpreter ABI Platform
qciconnect_miniserver-0.7.0-py3-none-any.whl Python 3 none any Details

Total release size: 54.9 kB

Release files / qciconnect_miniserver-0.7.0.tar.gz

Download URL qciconnect_miniserver-0.7.0.tar.gz
Size 24.5 kB
Tags Source
SHA-256 checksum
How to use checksums
a61f9b80af68f76e9159a5a80509d5da5bdd0d0935a9bc645181869b01b28e36
BLAKE2b-256 checksum
How to use checksums
f24cbbb5992dd3966082511d08332d9c1da38e842eac8b3f40726c1ed45d7f16
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.15

Release files / qciconnect_miniserver-0.7.0-py3-none-any.whl

Download URL qciconnect_miniserver-0.7.0-py3-none-any.whl
Size 30.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
abe7016ea2aee52b23986b07eb82df8711f4971d5cb0953e4c3a1d791926975b
BLAKE2b-256 checksum
How to use checksums
4defa88c43d5dc872a0100d24b0a1e977b1bd88663b12ff09c2c405d27178ed6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.15

Release history Release notifications | RSS feed

This release

0.7.0 This release

2 release files

0.6.0

2 release files

0.5.0

2 release files

0.4.2

2 release files

0.3.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page