Skip to main content

flimkit-bridge

The local HTTP server that FLIMKit image analysis clients talk to.

Two add-ons use it. The QuPath extension and the Fiji add-on are both clients of this one server, so a fix here reaches both and neither carries its own copy of the API.

It started inside the QuPath add-on and moved out once there were two clients. The wire protocol it speaks was designed and first implemented in flimkit-fiji-bridge by Zhen Yuan Yeo (https://doi.org/10.5281/zenodo.21951612).

Running it

The server starts with FLIMKit. Tools > FLIMKit Bridge... shows its address and whether anything has connected.

It also runs without the desktop app, which is what you want on a headless machine or when QuPath or Fiji is the only front end:

pip install flimkit-bridge
flimkit-bridge

--port and --token are there if you need them, --force takes over from a bridge that has been left running, and --no-announce serves alongside one instead.

Pairing

The server writes its address and a generated token to ~/.flimkit/bridge.json, and clients read that file, so there is nothing to type in. Each start mints a new token, so a client re-reads the file before every call.

It writes ~/.flimkit/qupath-bridge.json alongside it, carrying the same address under the older protocol name. QuPath extensions built before the server moved out check for that name and stop pairing without it. The second file goes when those versions are retired.

Versions

GET /v1/status reports protocol_version, bridge_version and flimkit_version. A client checks protocol_version, which is what governs whether the two can talk. bridge_version is for display: the server and each client version independently now, so a difference between them is ordinary rather than a problem.

Security

The server listens on 127.0.0.1 only, and refuses any request whose Host header is not localhost, which stops a web page reaching it by resolving its own hostname to your machine. Every endpoint except the status check requires the token.

Both programs therefore have to be on the same machine. If they are not, forward the port over SSH rather than exposing it:

ssh -L 8765:127.0.0.1:8765 you@the-flimkit-machine

Licence

MIT. See LICENSE.md.

Release files for flimkit-bridge 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 flimkit-bridge 0.6.0
File Size Uploaded
flimkit_bridge-0.6.0.tar.gz 59.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for flimkit-bridge 0.6.0
File Interpreter ABI Platform
flimkit_bridge-0.6.0-py3-none-any.whl Python 3 none any Details

Total release size: 94.9 kB

Release files / flimkit_bridge-0.6.0.tar.gz

Download URL flimkit_bridge-0.6.0.tar.gz
Size 59.3 kB
Tags Source
SHA-256 checksum
How to use checksums
cb39d043e4d83fff707dcbc3aa719dc00b7b08ddac26d049d902a1a8f2458ecd
BLAKE2b-256 checksum
How to use checksums
d44b336d0b5434252458b302ffb4ab03a8264e7e5b8e6b544d06129f0696842e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

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 Aug 24, 2026.

Transparency log

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

Download URL flimkit_bridge-0.6.0-py3-none-any.whl
Size 35.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d20ebb548555ca6d02f5f226a226a8a45e52a1f2a8918d631be24593f397037a
BLAKE2b-256 checksum
How to use checksums
de3960f812c336a7bc28be940db0b28a2dc5d7ab33caba3ccfbe3f128dbbcc39
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

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 Aug 24, 2026.

Transparency log

Release history Release notifications | RSS feed

0.8.0

2 release files

0.7.0

2 release files

This release

0.6.0 This release

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