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
-
Install via pip:
pip install snakemake-logger-plugin-rich -
Run Snakemake with the
--logger richoption:snakemake --logger rich
Development
This project uses pixi for environment management.
Setting up the development environment
-
Fork the repository
-
Clone the repository:
git clone https://github.com/<your-username>/snakemake-logger-plugin-rich.git cd snakemake-logger-plugin-rich -
Install dependencies using pixi:
pixi install -
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. Usesdemo/Snakefileby default, or specify a custom Snakefile path - Run Demo:
pixi run run-demo [snakefile]- Runs a demonstration Snakemake workflow using the plugin. Usesdemo/Snakefileby default, or specify a custom Snakefile path - Dry Run:
pixi run dryrun [snakefile]- Performs a dry run of the demo workflow. Usesdemo/Snakefileby 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file snakemake_logger_plugin_rich-0.4.1.tar.gz.
File metadata
- Download URL: snakemake_logger_plugin_rich-0.4.1.tar.gz
- Upload date:
- Size: 14.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
01e09eac27907bffc7125859eff6eab812c864b409b89e38494db441e4b9217e
|
|
| MD5 |
0e634bd53e3fee501d2bf00fc9c052c3
|
|
| BLAKE2b-256 |
e5ce0065a064163766bcde3a420eaeec28084fb037448aee240f339cb2f3ac9c
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
snakemake_logger_plugin_rich-0.4.1.tar.gz -
Subject digest:
01e09eac27907bffc7125859eff6eab812c864b409b89e38494db441e4b9217e - Sigstore transparency entry: 1082775262
- Sigstore integration time:
-
Permalink:
cademirch/snakemake-logger-plugin-rich@fc762e4baaf34f72888d7af9ad2ce6de18223853 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/cademirch
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@fc762e4baaf34f72888d7af9ad2ce6de18223853 -
Trigger Event:
push
-
Statement type:
File details
Details for the file snakemake_logger_plugin_rich-0.4.1-py3-none-any.whl.
File metadata
- Download URL: snakemake_logger_plugin_rich-0.4.1-py3-none-any.whl
- Upload date:
- Size: 11.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c7e669c59ba50054855d4ac86bb764a3605e87aa2b2a57be1979f28ce8eb2f8c
|
|
| MD5 |
80cb525afd4ceaa15217cd29ade5f04d
|
|
| BLAKE2b-256 |
2cac915a2ffcbe5f91496c162e8d381627c58bc6ea528f4133ac00338b2cb475
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
snakemake_logger_plugin_rich-0.4.1-py3-none-any.whl -
Subject digest:
c7e669c59ba50054855d4ac86bb764a3605e87aa2b2a57be1979f28ce8eb2f8c - Sigstore transparency entry: 1082775295
- Sigstore integration time:
-
Permalink:
cademirch/snakemake-logger-plugin-rich@fc762e4baaf34f72888d7af9ad2ce6de18223853 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/cademirch
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@fc762e4baaf34f72888d7af9ad2ce6de18223853 -
Trigger Event:
push
-
Statement type: