Skip to content

sendgrid

sendgrid

Classes:

Name Description
SendGrid

Match SendGrid API key(s)

SendGrid()

Bases: RegexPredictor

Match SendGrid API key(s)

Source code in src/nemo_safe_synthesizer/pii_replacer/ner/regexes/sendgrid.py
def __init__(self):
    entity = Entity.SENDGRID_CREDENTIALS

    _match_1 = Pattern(pattern=r"SG\.[a-zA-Z0-9-_]{22}\.[a-zA-Z0-9-_]{43}", raw_score=Score.HIGH)
    super().__init__(entity=entity, patterns=[_match_1])