yaml-pipe

Parse yaml


License
MIT
Install
pip install yaml-pipe==1.2.2

Documentation

yaml-pipe

PyPI Python Versions PyPI Download Issues Release Drafter

Install

pip install yaml-pipe

How to use

example1

sample.yml

---
foo:
  bar: BAR
cat sample.yml | yaml-pipe foo.bar="bar"

output

---
foo:
  bar: bar

example2

sample.yml

---
foo:
  bar: BAR
---
fizz:
  buzz: BUZZ
cat sample.yml | yaml-pipe --block_id 1 fizz.buzz="buzz"

output

---
foo:
  bar: BAR
---
fizz:
  buzz: buzz