Create and manage Arkitekt deployments — the konstruktor CLI, and a Python interface to it.
pip install konstruktor==0.46.0
Create and manage Arkitekt deployments — the konstruktor CLI in a wheel, and a Python interface to it.
The wheel carries the CLI itself, so that is the whole install: konstruktor is on your PATH (and python -m konstruktor runs it), and the Python interface below always drives the generator it was released with. Docker has to be running.
Everything that decides what a deployment looks like lives in the CLI. This package runs it, reads back what it wrote, and hands you the result as a dokker deployment to look into.
A deployment from Python
A hub is a self-contained hub : the services you name, and a coordination server of their own, behind one gateway on one port ( konstruktor hub create --server local ). Nobody has to accept it and nothing leaves the machine.
Entering the block does nothing. The block says what happens, and leaving it undoes exactly that:
A hub can also be made from images instead of names. Each image is asked which service it is, so a client library only has to know the image that hosts it:
Rekuest then runs only if one of the images is Rekuest's.
Inside the block the hub answers for its services:
Starting, stopping and removing ( up , stop , down , pull , destroy ) are the konstruktor commands of the same name, on the whole hub: which containers a hub runs, and from which builds, is the generator's to say, so up(services=[...]) is refused. Everything else above is dokker's, on the compose project in the hub's folder. Each has an a -prefixed async twin ( await hub.aup() , async with hub: ).
These run on a loop the block owns, so they need the block. Outside of a with — in a fixture, a notebook — hub.enter() and hub.exit() are the two halves of it. How to get in ( fakts_url , mandate_key , services , ...) is read from the hub's folder and works anywhere.
Developing a service against a hub
The tree is mounted over the image's own code and the server reloads when a file in it changes. The folder is written the first time and used as it is from then on.
Connecting an app to it takes the address and a mandate key:
or, for an app in another process, hub.env("my-app") — FAKTS_URL and FAKTS_MANDATE_KEY . An app in a container on the hub's own docker network points at instead: the hub can be logged into at any address it answers on.
One mandate key serves one app. The coordination server pins a token to the first app that logs in with it, so mandate_keys= is how many apps can connect, and hub.mandate_key(name) hands each name its own.
To run a particular build of a service rather than the one a new hub gets, pin it by its name in the stack: testing_hub(..., images={"rekuest": "jhnnsrs/rekuest:1.2.3"}) .
Installing the package registers a pytest plugin:
konstruktor_hub is a session-scoped factory taking what testing_hub takes. The hub it returns is entered, started and answering, so a test can ask it anything above. Every hub it makes is destroyed — containers, volumes and folder — when the session ends.
Tests marked konstruktor are skipped where Docker is not running.
A failed test gets the hub's container logs attached to its report.
Hubs live in a registry of their own, so they never show up beside your real ones.
A session that is killed leaves containers behind; the test hub made on the machine removes them.
Which build of a service a run tests against is usually the job's to say, not the suite's. Set KONSTRUKTOR_IMAGES where the suite runs and every hub created there uses those images, for the services it has:
From a source checkout
Release files for konstruktor 0.46.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation .
Built distributions (wheels)
Total release size: 33.7 MB
Release files / konstruktor-0.46.0-py3-none-win_amd64.whl
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.
Release files / konstruktor-0.46.0-py3-none-musllinux_1_2_x86_64.whl
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.
Release files / konstruktor-0.46.0-py3-none-manylinux_2_28_x86_64.whl
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.
Release files / konstruktor-0.46.0-py3-none-manylinux_2_28_aarch64.whl
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.
Release files / konstruktor-0.46.0-py3-none-macosx_11_0_arm64.whl
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.
Release files / konstruktor-0.46.0-py3-none-macosx_10_12_x86_64.whl
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.
Security for konstruktor 0.46.0
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.
All 6 files in this release have been uploaded with provenance metadata.
Attestation for konstruktor-0.46.0-py3-none-win_amd64.whl
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.
Attestation for konstruktor-0.46.0-py3-none-musllinux_1_2_x86_64.whl
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.
Attestation for konstruktor-0.46.0-py3-none-manylinux_2_28_x86_64.whl
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.
Attestation for konstruktor-0.46.0-py3-none-manylinux_2_28_aarch64.whl
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.
Attestation for konstruktor-0.46.0-py3-none-macosx_11_0_arm64.whl
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.
Attestation for konstruktor-0.46.0-py3-none-macosx_10_12_x86_64.whl
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.
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.
Release history Release notifications | RSS feed
Nov 26, 2026 6 release files Full provenance
Nov 26, 2026 6 release files Full provenance
Nov 23, 2026 6 release files Full provenance
Nov 22, 2026 6 release files Full provenance
Nov 21, 2026 6 release files Full provenance
Nov 21, 2026 6 release files Full provenance
Nov 21, 2026 6 release files Full provenance
Nov 20, 2026 6 release files Full provenance
Nov 13, 2026 6 release files Full provenance
Nov 10, 2026 6 release files Full provenance
Nov 5, 2026 6 release files Full provenance
Nov 5, 2026 6 release files Full provenance
Oct 28, 2026 6 release files Full provenance
Oct 28, 2026 6 release files Full provenance
Oct 28, 2026 6 release files Full provenance
Oct 27, 2026 6 release files Full provenance
Oct 27, 2026 6 release files Full provenance
Oct 23, 2026 6 release files Full provenance
Oct 20, 2026 6 release files Full provenance
Oct 20, 2026 6 release files Full provenance
Oct 20, 2026 6 release files Full provenance
Oct 20, 2026 6 release files Full provenance
Oct 20, 2026 6 release files Full provenance
Oct 20, 2026 6 release files Full provenance
Oct 20, 2026 6 release files Full provenance
Oct 20, 2026 6 release files Full provenance
Oct 20, 2026 6 release files Full provenance
Oct 19, 2026 6 release files Full provenance
Oct 18, 2026 6 release files Full provenance
Oct 18, 2026 6 release files Full provenance
Oct 17, 2026 6 release files Full provenance
Oct 16, 2026 6 release files Full provenance
Oct 16, 2026 6 release files Full provenance
Oct 15, 2026 6 release files Full provenance
Oct 10, 2026 6 release files Full provenance
Oct 10, 2026 6 release files Full provenance
Oct 10, 2026 6 release files Full provenance
Oct 8, 2026 6 release files Full provenance
Oct 7, 2026 6 release files Full provenance
Oct 7, 2026 6 release files Full provenance
Oct 7, 2026 6 release files Full provenance
Oct 7, 2026 6 release files Full provenance
Oct 7, 2026 6 release files Full provenance
The full story
This article is one source in a clustered incident — the cluster page carries the summary, timeline and every other outlet covering it.
