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.1.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.1-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: yamlgrep-0.1.1.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.1.tar.gz
Algorithm Hash digest
SHA256 6eebb1330cc0bf9365a052071460f0649cd98b3c664b59766361eb5136131555
MD5 ae9d7d8734e3bcda5140b75110d4e4bf
BLAKE2b-256 ab6283b9571fe9425fc74996115ffa7d7f8d5623e160f6e9f13134fa6b865d00

See more details on using hashes here.

File details

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

File metadata

  • Download URL: yamlgrep-0.1.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b0c5f48448ea28a78c3bdb696963fd033b26a3a710a27b47a6c35c72962d1a2f
MD5 12773d5b2babf33117e76cd6b23258ae
BLAKE2b-256 c089d0a4d9055ce0f67d228d1fb021873c22713687e6d3028a2a9cbf92a79a83

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