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.2.tar.gz (16.6 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.2-py3-none-any.whl (12.6 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for snakemake_logger_plugin_rich-0.4.2.tar.gz
Algorithm Hash digest
SHA256 7486604078e37ecb98d0e56f4b2ae28e99d9c0b9adaddfe5c232af151a5f179d
MD5 8be5a561cf2cd6ef462f0cfe614e7bc5
BLAKE2b-256 d22c7a2fb786fb4e3a88c8c7a81bbc2b34f2f421fbcca1b7b86d56ccad14a1b1

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for snakemake_logger_plugin_rich-0.4.2-py3-none-any.whl
Algorithm Hash digest
SHA256 8b788639fb57557b3eab555a59777166a929ca73be81d798c29904d9e981a68d
MD5 e29c33b7994b413c3878653df72c9886
BLAKE2b-256 019a354e15a4052d63fbb9c834bebbc3ae038181324d7d62fa6aeae2191392b0

See more details on using hashes here.

Provenance

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