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.2.0.tar.gz (3.8 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.2.0-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: yamlgrep-0.2.0.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.8.19

File hashes

Hashes for yamlgrep-0.2.0.tar.gz
Algorithm Hash digest
SHA256 eca0fca4bf2b50a7f411da59cac1c0fa2af4955b2ad112645b7ac3f7f5218f9c
MD5 9150bc82c22e9b1c99e84c9748aa1714
BLAKE2b-256 366a15f32515824d3a83360d070dfae1ee0eeca4c900fa2d72ca20ac66cc4868

See more details on using hashes here.

File details

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

File metadata

  • Download URL: yamlgrep-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 4.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.8.19

File hashes

Hashes for yamlgrep-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 365611fa0f44451ad5ac9d547798bea776c185422346d3ed4bd0ae7155fdd35e
MD5 c0e51709152819470586801c6835efb5
BLAKE2b-256 d05f016d49489d1dd93cca386b8a5186f9edec7c9778d224e7fa924853b4a497

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