Snakemake logger plugin that streams workflow events to a Dart desktop app over WebSocket.
Project description
snakemake-logger-plugin-dart
Plugin de logging do Snakemake 9+ que
transmite os eventos do workflow em tempo real, via WebSocket, para uma
aplicação desktop (Dart) que embarca o servidor — contraparte do pacote Dart
snakemake_bridge. Arquitetura e
protocolo:
ARCHITECTURE.md.
Instalação
pip install snakemake-logger-plugin-dart
# ou, a partir do código-fonte:
pip install -e .
# Snakemake passa a listar:
snakemake --help | grep logger-dart
Uso
snakemake \
--cores 4 \
--logger dart \
--logger-dart-address ws://127.0.0.1:8765
Configurações
| Flag | Env var | Default | Descrição |
|---|---|---|---|
--logger-dart-address |
SNAKEMAKE_LOGGER_DART_ADDRESS |
(obrigatório) | URL ws:// do servidor embarcado no app. |
--logger-dart-token |
SNAKEMAKE_LOGGER_DART_TOKEN |
— | Bearer token exigido pelo app (prefira a env var; não aparece no ps). |
--logger-dart-flush-timeout |
— | 5.0 |
Segundos máximos, no encerramento, aguardando a entrega dos eventos pendentes. |
Garantias
emit()nunca bloqueia o Snakemake: eventos vão para uma fila drenada por uma thread própria.- Queda de conexão / app fechado nunca afetam o workflow: reconexão com
backoff + buffer de replay (o app pede
replayao receberhello). - Entrega at-least-once — o consumidor deduplica pelo
seqdo envelope.
Desenvolvimento
pip install -e '.[dev]'
pytest
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 snakemake_logger_plugin_dart-0.1.0.tar.gz.
File metadata
- Download URL: snakemake_logger_plugin_dart-0.1.0.tar.gz
- Upload date:
- Size: 10.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
853259a4ab0cf226429bc4574854c315643ee5f8851176b3737f10baf847c4b1
|
|
| MD5 |
c99fd89120dd35c1c92b94fc3aad8695
|
|
| BLAKE2b-256 |
ffecc26e4b1b995929673b9ce0ba5be18c4749d8a923374b07300264c604aa1b
|
File details
Details for the file snakemake_logger_plugin_dart-0.1.0-py3-none-any.whl.
File metadata
- Download URL: snakemake_logger_plugin_dart-0.1.0-py3-none-any.whl
- Upload date:
- Size: 10.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3fec8b665d2f6d8563f1dc4e69af1066f6929c531c38a395225639de1e7c87c2
|
|
| MD5 |
4628d74c742c55c648e1a56f78ade3be
|
|
| BLAKE2b-256 |
064cc0d9fdb626501f83bbdd74954cd122dd8368cf55871e955b6ff25fe00394
|