Skip to main content

Dumb little tool to 'grep' yaml files

Project description

yamlgrep

A simple-ish program to "grep" for values in a yaml file

yamlgrep works by taking a series of yaml files and traversing the entire tree; when it finds a value which matches the pattern given, it prints the filename (optional), the number of the document within that file (optional), the path to the value.

Example:

$ yamlgrep foo thismanifest.yaml thatmanifest.yaml
thismanifest.yaml:1: .spec.containers.0.image foo.io/eieio/myimg:v1.31.1
thatmanifest.yaml:8: .spec.containers.0.image foo.io/eieio/myimg:v1.32.4

The --help is pretty good in explaining things.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

yamlgrep-0.1.0.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

yamlgrep-0.1.0-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

Details for the file yamlgrep-0.1.0.tar.gz.

File metadata

  • Download URL: yamlgrep-0.1.0.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for yamlgrep-0.1.0.tar.gz
Algorithm Hash digest
SHA256 a2785e219b57ded75413ab00eb21c0f6f42d102c6de2d4fd6dc584e7d1fab4e5
MD5 2ea3f97cbd886c5ec9a17fbc690cf01b
BLAKE2b-256 ffeae28a06031d4f8398701770dcb8f7c42ea6ede6896b22a244a11d20f55357

See more details on using hashes here.

File details

Details for the file yamlgrep-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: yamlgrep-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for yamlgrep-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d18ba7854e8664e47439c071b3c8e531957a4dbd6dda84fda801e3860b4d6296
MD5 ec86e6db9c70e8f14413e6bef785cc9d
BLAKE2b-256 8bf96325828d14806ef629829efc3a4d001ed42e77a8a4d918636ba88f86597f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page