Command-line argument parser for pipen.
Project description
pipen-args
Command line argument parser for pipen
Usage
from pipen import Proc, Pipen
from pipen_args import args
class Process(Proc):
input = 'a'
input_data = range(10)
script = 'echo {{in.a}}'
Pipen().run(Process)
> python example.py --help
DESCRIPTION:
Pipeline description.
USAGE:
example.py [OPTIONS]
OPTIONAL OPTIONS:
--profile <STR> - 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.
Default: default
--loglevel <AUTO> - The logging level for the main logger, only
takes effect after pipeline is initialized.
Default: <from config>
--cache [BOOL] - Whether enable caching for processes.
Default: <from config>
--dirsig <INT> - The depth to check the Last Modification
Time of a directory.
Since modifying the content won't change its
LMT.
Default: <from config>
--error_strategy <CHOICE> - How we should deal with job errors.
- ignore: Let other jobs keep running.
But the process is still failing when done.
- halt: Halt the pipeline, other running
jobs will be killed.
- retry: Retry this job on the scheduler
system.
Default: <from config>
--num_retries <INT> - How many times to retry the job when failed.
Default: <from config>
--forks <INT> - How many jobs to run simultaneously by the
scheduler.
Default: <from config>
--submission_batch <INT> - How many jobs to submit simultaneously to
the scheduler system.
Default: <from config>
--workdir <PATH> - The workdir for the pipeline.
Default: <from config>
--scheduler <STR> - The default scheduler.
Default: <from config>
--scheduler_opts <JSON> - The default scheduler options. Will update
to the default one.
Default: <from config>
--plugins <LIST> - A list of plugins to only enabled or
disabled for this pipeline.
To disable plugins, use no:<plugin_name>
Default: <from config>
--plugin_opts <JSON> - Plugin options. Will update to the default.
Default: <from config>
--template_opts <JSON> - Template options. Will update to the
default.
Default: <from config>
--outdir <PATH> - The output directory for the pipeline.
Default: <from config>
-h, --help - Print help information for this command
See more examples in examples/
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.0.4.tar.gz
(4.4 kB
view details)
Built Distribution
File details
Details for the file pipen-args-0.0.4.tar.gz
.
File metadata
- Download URL: pipen-args-0.0.4.tar.gz
- Upload date:
- Size: 4.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.11 CPython/3.9.7 Linux/5.8.0-1042-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 65b0724044861a4c1ee40431af439efcca0ed400a026a48c11aeec942fbd334a |
|
MD5 | dc2099fc982df1fb9f6fbd3db1c137fe |
|
BLAKE2b-256 | a3d6a0ce0a0caf95f74f4a1b83202e1d6c487bbb66d046e2074b1fdaf5e77f0c |
File details
Details for the file pipen_args-0.0.4-py3-none-any.whl
.
File metadata
- Download URL: pipen_args-0.0.4-py3-none-any.whl
- Upload date:
- Size: 4.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.11 CPython/3.9.7 Linux/5.8.0-1042-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0c783eec8fce2226c3e681ab8a4dc6a64ad5946efc1a05906a15237050be4b2e |
|
MD5 | f55b836cf6b455a0483095191e49ae7e |
|
BLAKE2b-256 | 4e99100f1bf1593da9d11c18262f41af548c8b1afb72886541cc3d1a8ce56b25 |