def emails(src_dir, pattern, exclusive_path=None):
    params = _parse_params(pattern)
    for result in _emails(src_dir, pattern, params, exclusive_path):
        yield Email(**result.named)
Resolves a pattern to a collection of emails. The pattern needs to have 'name' and 'locale' as this is used later
dataset/ETHPy150Open KeepSafe/ks-email-parser/email_parser/fs.py/emails