Skip to main content

A plugin for poetry that adds Snakemake-specific functionality.

Project description

poetry-snakemake-plugin

test coverage: 100%

A plugin for poetry that adds Snakemake-specific functionality. Currently it supports scaffolding the source code for new Snakemake executor plugins and storage plugins. This works as follows.

Scaffolding an executor plugin

Lets assume that you want to create a snakemake executor plugin with the name snakemake-executor-plugin-myfancyexecutor.

# Install poetry plugin via
poetry self add poetry-snakemake-plugin

# Create a new poetry project via
poetry new snakemake-executor-plugin-myfancyexecutor

cd snakemake-executor-plugin-myfancyexecutor

# Scaffold the project as a snakemake executor plugin
poetry scaffold-snakemake-executor-plugin

# Next, edit the scaffolded code according to your needs, and publish
# the resulting plugin into a github repository. The scaffold command also 
# creates github actions workflows that will immediately start to check and test
# the plugin.

Scaffolding a storage plugin

Lets assume that you want to create a snakemake storage plugin with the name snakemake-storage-plugin-myfancystorage.

# Install poetry plugin via
poetry self add poetry-snakemake-plugin

# Create a new poetry project via
poetry new snakemake-storage-plugin-myfancystorage

cd snakemake-storage-plugin-myfancystorage

# Scaffold the project as a snakemake executor plugin
poetry scaffold-snakemake-storage-plugin

# Next, edit the scaffolded code according to your needs, and publish
# the resulting plugin into a github repository. The scaffold command also 
# creates github actions workflows that will immediately start to check and test
# the plugin.

Scaffolding a report plugin

Lets assume that you want to create a snakemake report plugin with the name snakemake-report-plugin-myfancyreport.

# Install poetry plugin via
poetry self add poetry-snakemake-plugin

# Create a new poetry project via
poetry new snakemake-report-plugin-myfancyreport

cd snakemake-storage-plugin-myfancyreport

# Scaffold the project as a snakemake executor plugin
poetry scaffold-snakemake-report-plugin

# Next, edit the scaffolded code according to your needs, and publish
# the resulting plugin into a github repository. The scaffold command also 
# creates github actions workflows that will immediately start to check and test
# the plugin.

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

poetry_snakemake_plugin-0.4.0.tar.gz (9.6 kB view details)

Uploaded Source

Built Distribution

poetry_snakemake_plugin-0.4.0-py3-none-any.whl (16.1 kB view details)

Uploaded Python 3

File details

Details for the file poetry_snakemake_plugin-0.4.0.tar.gz.

File metadata

  • Download URL: poetry_snakemake_plugin-0.4.0.tar.gz
  • Upload date:
  • Size: 9.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.11.8 Linux/6.2.0-1019-azure

File hashes

Hashes for poetry_snakemake_plugin-0.4.0.tar.gz
Algorithm Hash digest
SHA256 631c079773e02088cd0dc961074bf60d488015854e75529e4c31d3bf8cbbbd1a
MD5 b550272bea69b61933d1fdcd17e4679d
BLAKE2b-256 e81e889a145ad7388b2895dc05a5573aa7ace69b74f0803e853aa8c76ab97868

See more details on using hashes here.

File details

Details for the file poetry_snakemake_plugin-0.4.0-py3-none-any.whl.

File metadata

File hashes

Hashes for poetry_snakemake_plugin-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fdb400447592eeda384da7a2d06157d7624394c90656cd6e92e173d2024d345c
MD5 fc420d87acc1db87c2f7b8ec0912b8ba
BLAKE2b-256 6755c4004a1fbd42023fba28f41760ee33b9f5a35e5ea84ef5d10852e8a1b35d

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page