Skip to main content

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 replay ao receber hello).
  • Entrega at-least-once — o consumidor deduplica pelo seq do envelope.

Desenvolvimento

pip install -e '.[dev]'
pytest

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

snakemake_logger_plugin_dart-0.1.0.tar.gz (10.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

snakemake_logger_plugin_dart-0.1.0-py3-none-any.whl (10.0 kB view details)

Uploaded Python 3

File details

Details for the file snakemake_logger_plugin_dart-0.1.0.tar.gz.

File metadata

File hashes

Hashes for snakemake_logger_plugin_dart-0.1.0.tar.gz
Algorithm Hash digest
SHA256 853259a4ab0cf226429bc4574854c315643ee5f8851176b3737f10baf847c4b1
MD5 c99fd89120dd35c1c92b94fc3aad8695
BLAKE2b-256 ffecc26e4b1b995929673b9ce0ba5be18c4749d8a923374b07300264c604aa1b

See more details on using hashes here.

File details

Details for the file snakemake_logger_plugin_dart-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for snakemake_logger_plugin_dart-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3fec8b665d2f6d8563f1dc4e69af1066f6929c531c38a395225639de1e7c87c2
MD5 4628d74c742c55c648e1a56f78ade3be
BLAKE2b-256 064cc0d9fdb626501f83bbdd74954cd122dd8368cf55871e955b6ff25fe00394

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page