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.6.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.6.0
File Size Uploaded
qciconnect_miniserver-0.6.0.tar.gz 24.5 kB Details

Built distribution (wheel)

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

Total release size: 54.9 kB

Release files / qciconnect_miniserver-0.6.0.tar.gz

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

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

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

Release history Release notifications | RSS feed

0.7.0

2 release files

This release

0.6.0 This release

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