Command-line argument parser for pipen.
Project description
pipen-args
Command line argument parser for pipen
Usage
from pipen import Proc, Pipen
# Note that unlike other plugins, you need to import install
# to activate the plugin
from pipen_args import install # noqa: F401
class Process(Proc):
"""My process
Input:
a: Input data
"""
input = 'a'
input_data = range(10)
script = 'echo {{in.a}}'
Pipen().set_start(Process).run()
$ python example.py --help
Usage: test.py [-h | -h+] [options]
Undescribed process.
Use `@configfile` to load default values for the options.
Pipeline Options:
--name NAME The name for the pipeline, will affect the default workdir and
outdir. [default: pipen-0]
--profile PROFILE The default profile from the configuration to run the pipeline.
This profile will be used unless a profile is specified in the
process or in the .run method of pipen. You can check the
available profiles by running `pipen profile`
--outdir OUTDIR The output directory of the pipeline [default: ./<name>_results]
--forks FORKS How many jobs to run simultaneously by the scheduler
--scheduler SCHEDULER
The scheduler to run the jobs
Namespace <in>:
--in.a A [A ...] Input data
Optional Arguments:
-h, --help, -h+, --help+
show help message (with + to show more options) and exit
See more examples in tests/pipelines/
folder.
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
pipen_args-0.6.1.tar.gz
(8.2 kB
view details)
Built Distribution
File details
Details for the file pipen_args-0.6.1.tar.gz
.
File metadata
- Download URL: pipen_args-0.6.1.tar.gz
- Upload date:
- Size: 8.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.4.0 CPython/3.11.2 Linux/5.15.0-1033-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e3cd06fdb1c321f080805554a683f59a9a7e0d884441633ce81f9c02b939f853 |
|
MD5 | 8e6be404ab11519f1abe92aac161f499 |
|
BLAKE2b-256 | a5bc913055192b1b0a919bf2b3f454c710afe52679e7e42f2edcf42484ffcba3 |
File details
Details for the file pipen_args-0.6.1-py3-none-any.whl
.
File metadata
- Download URL: pipen_args-0.6.1-py3-none-any.whl
- Upload date:
- Size: 9.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.4.0 CPython/3.11.2 Linux/5.15.0-1033-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bce6f2a61e4a2b6e2d97e6a61a7f05dd6a74eaf3159bb9bf2208627cccf72960 |
|
MD5 | 4931b818110d122d654eeb2b0120ff92 |
|
BLAKE2b-256 | a4f2f9b5aa3d45002edc321dfb384a138404670b6c6625f7335c5eaa423c277b |