Package Pyblio :: Module Query
[hide private]
[frames] | no frames]

Module Query

source code

Definition of the query language.

A query is composed of elementary search operations, which are combined by boolean operations:
>>> query = (AnyWord(u'findme') | Txo('type', item)) & ~ HasField('title')


Classes [hide private]
  _Constraint
  _NOTed
  _Pairs
  _ORed
  _ANDed
  Null
Does not search anything, but is useful when programatically constructing a query:
  AnyWord
Full text searching of a single word
  HasField
Matches when the record has the specified field.
  Txo
Search items that belong to the corresponding txo
  Queryable
A mixin that provides an (one day optimized) query engine to a store