Skip to main content

SnaCLI

SnaCLI is a library which simplifies writing scripts which can be both run directly from the command line (based on docopt), as well as be called in a Snakemake file.

Introduction

In the Snakemake workflow management system, tasks can call Python scripts and pass them input, output and log filenames as well as global configuration values and non-filename parameters.

The system for passing and accessing these arguments is different to that adopted by command line tools (for example using the docopt library).

SnaCLI allows to easily combine the two approaches (docopt and snakemake) for providing arguments to a script. Script based on SnaCLI can be invoked both from the command line and from snakemake. Inside the script, the same code can be used in both cases, without modifications.

Usage

The usage of the library is explained in the user manual.

Metadata

Release files for snacli 1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for snacli 1.2
File Size Uploaded
snacli-1.2.tar.gz 12.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for snacli 1.2
File Interpreter ABI Platform
snacli-1.2-py3-none-any.whl Python 3 none any Details

Total release size: 16.8 kB

Release files / snacli-1.2.tar.gz

Download URL snacli-1.2.tar.gz
Size 12.2 kB
Tags Source
SHA-256 checksum
How to use checksums
b00d8e89cc0b4343869e86d9850fbf00536f9e247255bbb6da73fbb7261ef9e7
BLAKE2b-256 checksum
How to use checksums
76ada4665d6918e286c3d3fc87c0cba66f8a8ef99af253a48521e2f85cd8cfd7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.5

Release files / snacli-1.2-py3-none-any.whl

Download URL snacli-1.2-py3-none-any.whl
Size 4.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8e3d98a205fd9e18a36cbdd4d98a096ac32285af5447f1afde6fc5af502c85b7
BLAKE2b-256 checksum
How to use checksums
fccc4fecc368542655233a8f8919d3bf07592ebea420e408dd6bda2f2ff8c35e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.5

Release history Release notifications | RSS feed

This release

1.2 This release

2 release files

1.1

2 release files

1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page