Mini server for local development
Project description
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
- locally develop algorithms with the goal to integrate them to the platform,
- prototype quickly, and
- 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
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.
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>
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file qciconnect_miniserver-0.4.2.tar.gz.
File metadata
- Download URL: qciconnect_miniserver-0.4.2.tar.gz
- Upload date:
- Size: 16.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f348acbacd08ad5732e35a0c68a57b5c854dea0926df20a701ba4fe7d9a6e0b0
|
|
| MD5 |
9a130500c0ca8b946e06a6affda0b0fe
|
|
| BLAKE2b-256 |
10e4323838a047a8fb80cbbe9e4f4559a861e94f443da949bed492237b657012
|
File details
Details for the file qciconnect_miniserver-0.4.2-py3-none-any.whl.
File metadata
- Download URL: qciconnect_miniserver-0.4.2-py3-none-any.whl
- Upload date:
- Size: 21.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
85e4c74938982cde8d2df2936e27450b065b2ee10ab6453b6e1d99b3a508c1ac
|
|
| MD5 |
a358be541fb24a15b5ed9f951db45704
|
|
| BLAKE2b-256 |
64c85f0f4cbfc310e2c523754d2aee0103a4638cfada20fe4f50d7127ea3e768
|