pypyr release v4.2.0
flat & recursive format, !jsonify, parsejson
Release Date: 2020-10-30T00:27:59Z
- python 3.9 compatibility officially confirmed & enforced in CI. All good. Woo! 🎉
- New Flat
ffand Recursiverfformatting specifiers. #195- Check recursive vs flat format expressions for full documentation.
- Maintain backwards compatibility for all current formatting functionality.
- The
get_formatted_string,get_formatted_iterable&get_processed_stringmethods onContext()are now all deprecated. Useget_formatted_valueinstead. All of the deprecated functions will keep on working as before, but will print a WARN to the output. get_formattedandget_formatted_valueremain the official best ways of getting formatted values.
- New
!jsonifyyaml special tag directive. This converts a context object to a json string. #197.- Check how to serialize or convert an object into json for details.
- New
pypyr.steps.jsonparsestep. Parse and deserialise a json string into Context. #199- Check how to parse a json string into an object for full documentation.
- Bare
pypyr.steps.assertsyntax. #196- Use the new simplified assert format.
- Minor api improvements unlikely to be of interest except for the very enthusiastic
- Add new
utils.assertsfor extra flexibility with nested key validation. - PyStrings optimized. Not so that you’d notice, but still, it’ll be a smidge faster.
- Add new
- Friendlier error messages when yaml/json context parsers reject documents that do NOT have a mapping at root.
- Update pypyr-aws release 1.2.0 to work with new
ff/rfformatting functionality. - pypyr-slack python 3.9 compatibility officially confirmed & included in CI. No release necessary.
You can find pypyr release v4.2.0 on github, where you can click through to associated Issues, Pull Requests and Users.
Released by yaythomas.