pypyr release v4.4.0
simplified py step syntax & imports for !py strings.
Release Date: 2020-12-26T15:50:27Z
- New step pypyr.steps.pyimport to import
references to the
!py
string namespace.- This includes an underlying api signature change by removal of
pypyr.utils.expressions.eval_string()
, but this is sufficiently far down the call-chain that it shouldnโt affect any normal pipeline operator or api consumer.
- This includes an underlying api signature change by removal of
- pypyr.steps.contextclearall wipes
pyimport
imported references in addition to the key/values inside context. - Simplify
pypyr.steps.py
syntax by allowing a newpy
(rather thanpycode
) input. This allows pipeline authors to use context key names directly as variables, rather than have to specify them as keys in context (my_var
vscontext[โmy_varโ]
).- See pypyr.steps.py for details on how to use the new style input.
- the old
pycode
style will keep on working in the same way, so no need to worry about backwards compatibility for your existing pipelines.
- Allow substitutions on retry
max
. Resolves #207. Excellent bug find & fix by @Reskov, much thanks ๐ ๐ ๐ as ever for a superb contribution! ๐ฅ ๐ฅ ๐ฅ foreach
can now use any iterable, including generators. See how you can use this for flattening nested for loops to simplify your pipelines when you have multiple nestedforeach
loops.
how to upgrade
If you want to upgrade (and you totally should!):
$ pip install --upgrade pypyr
source
You can find pypyr release v4.4.0 on github, where you can click through to associated Issues, Pull Requests and Users.
Released by yaythomas.