Skip to content

string loader

Compare
Choose a tag to compare
@yaythomas yaythomas released this 21 Sep 08:21
· 3 commits to main since this release

summary

  • Add new pypyr.loaders.string loader that loads pipelines directly from strings.
from pypyr import pipelinerunner

pipeline = """\
steps:
- name: pypyr.steps.set
  in:
    set:
      test: 1
"""

context = pipelinerunner.run(pipeline_name=pipeline,
                             loader="pypyr.loaders.string")

assert context["test"] == 1
  • Fix bug with !jsonify custom tags failing to load with error "ruamel.yaml.constructor.ConstructorError: could not determine a constructor for the tag '!jsonify'".
    • this was due to a regression in the ruamel dependency

what's changed

new contributors

Full Changelog: v5.8.0...v5.9.0