dotty (Python query language)

EFILTER (dotty) is a general purpose query language designed to be
embedded in python applications and libraries. It supports SQL-like
syntax to filter your application's data and provides a convenient way
to directly search through the objects your applications manages.
