Skip to main content

Log plugin for snakemake using Rich

Project description

Snakemake Logger Plugin: Rich

Note: This plugin is currently in development and may not be fully stable. Use at your own discretion and report any issues to the repository's issue tracker.

Introduction

A logging plugin for Snakemake that utilizes rich for enhanced terminal styling and progress bars.

Usage

  1. Install via pip:

    pip install snakemake-logger-plugin-rich
    
  2. Run Snakemake with the --logger rich option:

    snakemake --logger rich
    

Development

This project uses pixi for environment management.

Setting up the development environment

  1. Fork the repository

  2. Clone the repository:

    git clone https://github.com/<your-username>/snakemake-logger-plugin-rich.git
    cd snakemake-logger-plugin-rich
    
  3. Install dependencies using pixi:

    pixi install
    
  4. Activate the development environment:

    pixi shell -e dev
    

Available development tasks

Run these commands with pixi run:

  • Demo: pixi run demo [snakefile] - Runs a complete demo workflow and cleans up afterward. Uses demo/Snakefile by default, or specify a custom Snakefile path
  • Run Demo: pixi run run-demo [snakefile] - Runs a demonstration Snakemake workflow using the plugin. Uses demo/Snakefile by default, or specify a custom Snakefile path
  • Dry Run: pixi run dryrun [snakefile] - Performs a dry run of the demo workflow. Uses demo/Snakefile by default, or specify a custom Snakefile path
  • Clean Demo: pixi run clean-demo - Cleans up demo output files
  • Quality Control: pixi run qc - Runs formatting, linting, and type checking
  • Format: pixi run format - Format code with ruff
  • Lint: pixi run lint - Lint code with ruff
  • Lint Fix: pixi run lint-fix - Lint and auto-fix code with ruff
  • Type Check: pixi run type-check - Type check with mypy

Testing the plugin

To test the plugin with the demo workflow:

pixi run demo

Or to run just the demo workflow without cleanup:

pixi run run-demo

To test with a custom Snakefile:

pixi run demo path/to/your/Snakefile

License

This project is licensed under the MIT License. See the LICENSE file for details.

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_rich-0.5.0.tar.gz (18.1 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_rich-0.5.0-py3-none-any.whl (13.5 kB view details)

Uploaded Python 3

File details

Details for the file snakemake_logger_plugin_rich-0.5.0.tar.gz.

File metadata

File hashes

Hashes for snakemake_logger_plugin_rich-0.5.0.tar.gz
Algorithm Hash digest
SHA256 2fc4d67385029a2c58fc928e27a9fd5556d49c28d98838366599412c1bf114ae
MD5 eab986a8f8018c7c2929f4958ac884e6
BLAKE2b-256 e77b35877d00cfe3b82c1ea0da5291fd4570fefeef480c5f5b73f2e7fd37c370

See more details on using hashes here.

Provenance

The following attestation bundles were made for snakemake_logger_plugin_rich-0.5.0.tar.gz:

Publisher: release.yml on cademirch/snakemake-logger-plugin-rich

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file snakemake_logger_plugin_rich-0.5.0-py3-none-any.whl.

File metadata

File hashes

Hashes for snakemake_logger_plugin_rich-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 37ff224169bc0e4efb0db71e9cc4386abf12b270a40508705f05c3acbf0b1d0f
MD5 68662c4b7ef81159ac6f2b332b5d6651
BLAKE2b-256 76a77498966f63005dc8fcf73821a3eee4ea47433a032fa56e474a71f74b06e2

See more details on using hashes here.

Provenance

The following attestation bundles were made for snakemake_logger_plugin_rich-0.5.0-py3-none-any.whl:

Publisher: release.yml on cademirch/snakemake-logger-plugin-rich

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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