skip to navigation
skip to content

Not Logged In

yfind 0.1.0a2

Search YAML files satisfying specified conditions.

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.bar, .foo[4].bar, .bar).

To check for existance of a field, use '?' before the field name: ?.foo.bar.

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

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

History

0.1.0a2 - 2012/08/21

  • Added boolean operations (and, or, not)
 
File Type Py Version Uploaded on Size
yfind-0.1.0a2.tar.gz (md5) Source 2012-08-21 4KB
  • Downloads (All Versions):
  • 2 downloads in the last day
  • 30 downloads in the last week
  • 215 downloads in the last month