bibliopixel.control.extractor module

class bibliopixel.control.extractor.Extractor(omit=None, normalizers=None, keys_by_type=None, accept=None, reject=None, auto_omit=True)[source]

Bases: object

Extractor is a class that extracts and normalizes values from incoming message dictionaries into ordered dictionaries based on the type key of each message.

extract(msg)[source]

Yield an ordered dictionary if msg[‘type’] is in keys_by_type.