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

Jobs are stored in <home>/.qciconnect/jobs and loaded again on startup. <home> is the user profile on Windows and the home directory on Linux and macOS.

To use a different directory:

uv run miniserver -j /path/to/jobs

-j / --job-dir (env JOB_DIR) overrides that default. A leading ~ is expanded.

Web UI

With the miniserver running, open http://localhost:8000/ui/. The page lists jobs, shows a result, and submits a compile or simulate job through the JSON API.

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.8.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.8.0
File Size Uploaded Provenance Actions
qciconnect_miniserver-0.8.0.tar.gz 237.6 kB Without provenance Details for qciconnect_miniserver-0.8.0.tar.gz

Built distribution (wheel)

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

Total release size: 480.1 kB

Release files / qciconnect_miniserver-0.8.0.tar.gz

Download URL qciconnect_miniserver-0.8.0.tar.gz
Size 237.6 kB
Tags Source
SHA-256 checksum
How to use checksums
92cf73db9827fbe5726296733615f6a940ff7a3a757e99ce39aa06ec74ca23e4
BLAKE2b-256 checksum
How to use checksums
611e7bd1e870418f568db4097cd0d54f900e59813d9171113348e94386d83a99
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.16

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

Download URL qciconnect_miniserver-0.8.0-py3-none-any.whl
Size 242.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
79a0121aef7301d70d7e177db78c2f91d82d4af47a5e7db1ef7ee1bed5ba9da0
BLAKE2b-256 checksum
How to use checksums
59b71f6daab4fc0ec3e194b693a9e02e9d918a915f8dc6e5002deb981275665d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.16

Security for qciconnect-miniserver 0.8.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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