pypyr release v5.3.0 permalink

shortcuts permalink

Release Date: 2022-03-09T16:38:06Z

Create shortcuts to your pypyr run commands & their input args.

This is handy for creating short & sweet aliases for longer pipeline run commands.

So if you have a pipeline you normally run like this:

term
$ pypyr arb/my-pipeline arg1=1234 arg2="/path/to long/annoying path to type/x" arg3="arb'hello"

You can create a shortcut alias for this like so:

shortcuts:
  my-shortcut:
    pipeline: arb/my-pipeline
    args:
      arg1: 1234
      arg2: /path/to long/annoying path to type/x
      arg3: "arb'hello"
[tool.pypyr.shortcuts]
[tool.pypyr.shortcuts.my-shortcut]
pipeline_name = "arb/my-pipeline"

[shortcuts.my-shortcut.args]
arg1 = 1234
arg2 = "/path/to long/annoying path to type/x"
arg3 = "arb'hello"

And now for the same pipeline + inputs you can just run:

term
$ pypyr my-shortcut

You can create your shortcut definition in pyproject.toml or in the pypyr yaml config file.

You can make your shortcuts project specific, or for the entire user profile, or globally for your entire system.

For full details, see pypyr shortcuts in the docs.

change list permalink

Full Changelog: https://github.com/pypyr/pypyr/compare/v5.2.0...v5.3.0

how to upgrade permalink

If you want to upgrade (and you totally should!):

$ pip install --upgrade pypyr

source permalink

You can find pypyr release v5.3.0 on github, where you can click through to associated Issues, Pull Requests and Users.

Released by yaythomas.

last updated on .