Pypyr

Latest version: v5.9.1

Safety actively analyzes 685670 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 14

5.9.1

overview
No functional change.

This change forces the ruamel yaml library dependency to upgrade - as of version 5.9.0 pypyr depends on ruamel.yaml >= 0.17.32.

If you do not have the latest version of ruamel and you use `!jsonify`, you will see:
> AttributeError: 'RoundTripConstructor' object has no attribute 'construct_unknown'

what's changed
* fix venv flaky test by yaythomas in https://github.com/pypyr/pypyr/pull/330
* ruamel version pin by yaythomas in https://github.com/pypyr/pypyr/pull/331


**Full Changelog**: https://github.com/pypyr/pypyr/compare/v5.9.0...v5.9.1

5.9.0

summary
- Add new `pypyr.loaders.string` loader that loads pipelines directly from strings.

python
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
* fix jsonify tag ruamel by yaythomas in https://github.com/pypyr/pypyr/pull/328
* String Loader by lucasrcezimbra in https://github.com/pypyr/pypyr/pull/326
* Bump version: 5.8.0 → 5.9.0 by yaythomas in https://github.com/pypyr/pypyr/pull/329

new contributors
* lucasrcezimbra made their first contribution in https://github.com/pypyr/pypyr/pull/326

**Full Changelog**: https://github.com/pypyr/pypyr/compare/v5.8.0...v5.9.0

5.8.0

summary
- convenience function to clear all caches in one call. Closes 316.
python
import pypyr.cache.admin as cache_admin

cache_admin.clear_all()

- disable caching entirely with new `no_cache` mode. Closes 317
python
from pypyr.config import config
from pypyr import pipelinerunner

disable all caching
config.no_cache = True

This will NOT save `my-pipe` to cache once its loaded.
context = pipelinerunner.run(pipeline_name='my-pipe')


What's Changed
* clear all cache, codecov token, tox 4 by yaythomas in https://github.com/pypyr/pypyr/pull/318
* no cache mode by yaythomas in https://github.com/pypyr/pypyr/pull/319
* Bump version: 5.7.1 → 5.8.0 by yaythomas in https://github.com/pypyr/pypyr/pull/320


**Full Changelog**: https://github.com/pypyr/pypyr/compare/v5.7.1...v5.8.0

5.7.1

summary
- maintenance release, no new features
- bug fix for `pypyr.steps.filereplace` to honor flat format `:ff` directive
- python 3.11 compatibility confirmed
- on python 3.11 runtimes, the `tomli` dependency won't install separately anymore since it's part of stdlib now

what's changed
* `pypyr.steps.filereplace` get_formatted X2 by yaythomas in https://github.com/pypyr/pypyr/pull/304
* new codecov uploader by yaythomas in https://github.com/pypyr/pypyr/pull/305
* py 3.11 & conditional tomli dep by yaythomas in https://github.com/pypyr/pypyr/pull/306
* Bump version: 5.7.0 → 5.7.1 by yaythomas in https://github.com/pypyr/pypyr/pull/307


**Full Changelog**: https://github.com/pypyr/pypyr/compare/v5.7.0...v5.7.1

5.7.0

summary
- New `switch` step for IF-ELSE style branching in your pipelines!
- New `argskwargs` parser to combine plain args and key-value pairs (key=value) from the cli
- `keyvaluepairs` and `dict` parsers now support having `=` in the value, so you can have `key=one+one=two` parse to `{'key': 'one+one=two'}`
- these parsers now also support passing args with no `=`, in which case `arg1` becomes `{'arg1': ''}`

what's changed
* switch by yaythomas in https://github.com/pypyr/pypyr/pull/299
* typing on dsl.cof by yaythomas in https://github.com/pypyr/pypyr/pull/300
* gh action checkout v3 by yaythomas in https://github.com/pypyr/pypyr/pull/301
* argskwargs parser & partitioning on = for kvp by yaythomas in https://github.com/pypyr/pypyr/pull/302


**Full Changelog**: https://github.com/pypyr/pypyr/compare/v5.6.0...v5.7.0

5.6.0

summary
- you can now use a custom error message when `pypyr.steps.assert` raises an exception.
- new `pypyr.steps.venv` step to create venvs in parallel from yaml or toml config.
- new `venv-create` pipeline so you can provision venvs concurrently from declarative config without having to write your own pipeline or script.
- pypyr is now built & packaged by the excellent PEP517 compliant `flit`.

what's changed
* flake8 new version line length by yaythomas in https://github.com/pypyr/pypyr/pull/286
* from setup.py to flit by yaythomas in https://github.com/pypyr/pypyr/pull/290
* remove redundant dict on parser context init by yaythomas in https://github.com/pypyr/pypyr/pull/292
* venv creator & log to stdout by yaythomas in https://github.com/pypyr/pypyr/pull/296
* ops/build uses venv for publish verify by yaythomas in https://github.com/pypyr/pypyr/pull/297


**Full Changelog**: https://github.com/pypyr/pypyr/compare/v5.5.0...v5.6.0

Page 1 of 14

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.