Skip to main content

Search YAML files satisfying specified conditions.

Project description

Search YAML files satisfying specified conditions.

Depends on Python 3.

Examples: yfind '.mailings[0].sent < 2012/06/12' my_files/

yfind '.id == 10'

((?.id) and (yfind '.id == 10)) or (.enabled == "False")'

Currently supported search expressions:

<Operand> <Operator> <Operand>

where Operator is one of ==, !=, <, >, <= or >=.

Operands may be numbers (1, 3.0), scalars (“foo”, “bar”), dates (2007/12/30) or YAML fields (, .foo[4].bar, .bar).

To check for existance of a field, use ‘?’ before the field name: ?

Search expression can be combined with the logical operators “and, or, not”:

  • not (<SearchExpression>)
  • (<SearchExpression>) and (<SearchExpression>)
  • (<SearchExpression>) or (<SearchExpression>)


0.1.0a2 - 2012/08/21

  • Added boolean operations (and, or, not)

Project details

Download files

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

Files for yfind, version 0.1.0a2
Filename, size File type Python version Upload date Hashes
Filename, size yfind-0.1.0a2.tar.gz (4.4 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page