ldapper.query

class ldapper.query.Q(**conditions)[source]

Bases: object

Query class used to build arbitrarily complex query filters.

Q objects are strung together and then compiled once we are told what the concrete LDAPNode class is going to be.

The key to the Q class is that it appends conditions when of the same type without creating another level of hierarchy, and it spawns child levels only when the operations (And, Or) switches.

compile(cls)[source]
check_type_compat(other)[source]
class ldapper.query.And(ops)[source]

Bases: ldapper.query.Q

compile(cls)[source]
class ldapper.query.Or(ops)[source]

Bases: ldapper.query.Q

compile(cls)[source]