pandagg.utils module

class pandagg.utils.DSLMixin[source]

Bases: object

Base class for all DSL objects - queries, filters, aggregations etc. Wraps a dictionary representing the object’s json.

class pandagg.utils.DslMeta(name, bases, attrs)[source]

Bases: type

Base Metaclass for DslBase subclasses that builds a registry of all classes for given DslBase subclass (== all the query types for the Query subclass of DslBase).

It then uses the information from that registry (as well as name and deserializer attributes from the base class) to construct any subclass based on it’s name.

pandagg.utils.equal_queries(d1, d2)[source]

Compares if two queries are equivalent (do not consider nested list orders).

pandagg.utils.ordered(obj)[source]