Skip to main content

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


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.7.3.tar.gz (8.7 kB view details)

Uploaded Source

Built Distribution

pipen_args-0.7.3-py3-none-any.whl (9.6 kB view details)

Uploaded Python 3

File details

Details for the file pipen_args-0.7.3.tar.gz.

File metadata

  • Download URL: pipen_args-0.7.3.tar.gz
  • Upload date:
  • Size: 8.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.0 CPython/3.11.2 Linux/5.15.0-1034-azure

File hashes

Hashes for pipen_args-0.7.3.tar.gz
Algorithm Hash digest
SHA256 89d507dd42aa86a6064a7edb653861f12b3f8b47196e97f1d1ae18454f63ec60
MD5 e1711885d3da8c9eeaca44013a41f02d
BLAKE2b-256 9be233b711bbe88295721e5e6dff8898d9069af84407bebb25de7c8fe42e01eb

See more details on using hashes here.

File details

Details for the file pipen_args-0.7.3-py3-none-any.whl.

File metadata

  • Download URL: pipen_args-0.7.3-py3-none-any.whl
  • Upload date:
  • Size: 9.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.0 CPython/3.11.2 Linux/5.15.0-1034-azure

File hashes

Hashes for pipen_args-0.7.3-py3-none-any.whl
Algorithm Hash digest
SHA256 169cf2d3251edc88d8372553f0e558a0ae94aa16e9213772b819949b7fd825c7
MD5 b1fb99e1077eb101af9322c67e995c8d
BLAKE2b-256 a5610c192019e1fcc2af394883b55d2d7caca2f81bfe0547ad15c30592cd3a93

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