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.4.1.tar.gz (14.7 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.4.1-py3-none-any.whl (11.3 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for snakemake_logger_plugin_rich-0.4.1.tar.gz
Algorithm Hash digest
SHA256 01e09eac27907bffc7125859eff6eab812c864b409b89e38494db441e4b9217e
MD5 0e634bd53e3fee501d2bf00fc9c052c3
BLAKE2b-256 e5ce0065a064163766bcde3a420eaeec28084fb037448aee240f339cb2f3ac9c

See more details on using hashes here.

Provenance

The following attestation bundles were made for snakemake_logger_plugin_rich-0.4.1.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.4.1-py3-none-any.whl.

File metadata

File hashes

Hashes for snakemake_logger_plugin_rich-0.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c7e669c59ba50054855d4ac86bb764a3605e87aa2b2a57be1979f28ce8eb2f8c
MD5 80cb525afd4ceaa15217cd29ade5f04d
BLAKE2b-256 2cac915a2ffcbe5f91496c162e8d381627c58bc6ea528f4133ac00338b2cb475

See more details on using hashes here.

Provenance

The following attestation bundles were made for snakemake_logger_plugin_rich-0.4.1-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