yfind 0.1.0 Alpha 2

Search YAML files satisfying specified conditions
yfind is a Python tool to search YAML files satisfying specified conditions.

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 ==, !=, , =.

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 >)

last updated on:
August 23rd, 2012, 14:04 GMT
price:
FREE!
developed by:
Christian Neumann
homepage:
github.com
license type:
BSD License 
category:
ROOT \ Text Editing&Processing \ Markup

FREE!

In a hurry? Add it to your Download Basket!

user rating

UNRATED
0.0/5
 

0/5

Rate it!

Add your review!

SUBMIT