Skip to main content

yaml-pipe

PyPI Python Versions PyPI Download Issues Release Drafter

Install

pip install yaml-pipe

How to use

  • --dotindex: extract only.
  • --dotlist: edit only.
  • -f, --file: edit only.

Extract Example 1

---
aaa:
  bbb: bbb
cat sample.yml | yaml-pipe --dotindex "aaa.bbb"

output

bbb

Extract Example 2

---
aaa:
  bbb: bbb
---
xxx:
  yyy: yyy
cat sample.yml | yaml-pipe --block_id 1 --dotindex "xxx.yyy"

output

yyy

Extract Example 3

---
xxx:
  yyy:
    zzz: zzz
cat sample.yml | yaml-pipe --block_id 1 --dotindex "xxx"

output

yyy:
  zzz: zzz

Edit Example 1

sample.yml

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

output

---
foo:
  bar: bar

Edit Example 2

sample.yml

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

output

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

example3

sample.yml

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

update.yml

fizz:
  buzz: buzz
cat sample.yml | yaml-pipe --block_id 1 --file update.yml

output

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

Developers

Linting and test

pyenv local 3.10.4 3.9.13 3.8.13
poetry install
poetry run nox
./test_cli.sh

Upload to PyPI

Default target is testpypi.

make pypi-upload

If you upload to pypi, set empty to TEST_PYPI.

make pypi-upload TEST_PYPI=

Metadata

Release files for yaml-pipe 1.2.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for yaml-pipe 1.2.2
File Size Uploaded
yaml-pipe-1.2.2.tar.gz 5.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for yaml-pipe 1.2.2
File Interpreter ABI Platform
yaml_pipe-1.2.2-py3-none-any.whl Python 3 none any Details

Total release size: 10.3 kB

Release files / yaml-pipe-1.2.2.tar.gz

Download URL yaml-pipe-1.2.2.tar.gz
Size 5.3 kB
Tags Source
SHA-256 checksum
How to use checksums
0390bcd0984096a38e39576b686f1e8beae713fa111a5b4a2554070601d26249
BLAKE2b-256 checksum
How to use checksums
2138fdef02cd2a3774e0b852a49f909673d6b86d8fa28b1cdb073f35fbac50c0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.13 CPython/3.10.4 Linux/5.13.0-52-generic

Release files / yaml_pipe-1.2.2-py3-none-any.whl

Download URL yaml_pipe-1.2.2-py3-none-any.whl
Size 4.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5c130ea26260927a7fa68f8226b65bca90aec30087b201ae89d46582ab597148
BLAKE2b-256 checksum
How to use checksums
a49e83b52ec06028cabbd3fbcb238653b5848e7c939283a03a8a24d642ca0400
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.13 CPython/3.10.4 Linux/5.13.0-52-generic

Release history Release notifications | RSS feed

This release

1.2.2 This release

2 release files

1.2.1

2 release files

1.2.0

2 release files

1.1.1

2 release files

1.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page