Skip to main content

snakemake-logger-plugin-snakesee

A Snakemake logger plugin that integrates with snakesee for enhanced workflow monitoring.

Overview

This plugin captures real-time workflow events directly from Snakemake's execution engine and writes them to a JSONL file that snakesee can read. This provides more accurate and timely job status information than log parsing alone.

Installation

pip install snakemake-logger-plugin-snakesee

Or install alongside snakesee:

pip install snakesee snakemake-logger-plugin-snakesee

Usage

Run Snakemake with the snakesee logger:

snakemake --logger snakesee --cores 4

In another terminal, run snakesee to monitor:

snakesee watch

The plugin writes workflow events to .snakesee_events.jsonl in the workflow directory. Snakesee automatically detects and reads these events for real-time updates.

Benefits

Using the logger plugin provides:

  • Instant job detection: Jobs are reported immediately when they start/finish, not when log lines are parsed
  • Accurate timing: Job durations are calculated from actual execution timestamps
  • Direct wildcard access: Wildcard values come directly from Snakemake, not regex parsing
  • Reliable error tracking: Failed jobs are detected via Snakemake events, not log patterns

Configuration

Setting Default Description
event_file .snakesee_events.jsonl Path to event file (relative to workflow directory)
buffer_size 1 Events to buffer before flush (1 = immediate)

Event Types

The plugin emits the following event types:

Event Description
workflow_started Workflow initialization
job_submitted Job queued for execution
job_started Job execution began
job_finished Job completed successfully
job_error Job failed
progress Overall progress update

Event File Format

Events are written as JSON Lines (one JSON object per line):

{"event_type":"workflow_started","timestamp":1703001234.123}
{"event_type":"job_submitted","timestamp":1703001235.0,"job_id":1,"rule_name":"align","wildcards":{"sample":"A"}}
{"event_type":"job_started","timestamp":1703001235.5,"job_id":1}
{"event_type":"job_finished","timestamp":1703001335.5,"job_id":1,"duration":100.0}
{"event_type":"progress","timestamp":1703001335.6,"completed_jobs":1,"total_jobs":10}

Backward Compatibility

Snakesee works with or without this plugin:

  • Without plugin: Uses log parsing and metadata files (existing behavior)
  • With plugin: Uses real-time events for enhanced accuracy

The plugin is completely optional - snakesee will automatically use events when available and fall back to log parsing otherwise.

Requirements

  • Python 3.11+
  • Snakemake 8.0+ (for logger plugin support)
  • snakemake-interface-logger-plugins >= 1.0.0

License

MIT

Metadata

Release files for snakemake-logger-plugin-snakesee 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for snakemake-logger-plugin-snakesee 0.1.1
File Size Uploaded Provenance
snakemake_logger_plugin_snakesee-0.1.1.tar.gz 12.7 kB With provenance Details

Release files / snakemake_logger_plugin_snakesee-0.1.1.tar.gz

Download URL snakemake_logger_plugin_snakesee-0.1.1.tar.gz
Size 12.7 kB
Tags Source
SHA-256 checksum
How to use checksums
55db2a9f0ba716221450995fba6772108dc0536f572db4f525a2647e480135b2
BLAKE2b-256 checksum
How to use checksums
f090dc8378103611b510a5476d5359850e50fc27e2819bc64206057eb25b1877
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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 Mar 29, 2026.

Transparency log

Security for snakemake-logger-plugin-snakesee 0.1.1

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.

Full provenance

All 1 file in this release has been uploaded with provenance metadata.

Attestation for snakemake_logger_plugin_snakesee-0.1.1.tar.gz

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 Mar 29, 2026.

Transparency log

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

This release

0.1.1 This release

1 release file Full provenance

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