n6sdk.regexes

This module contains several regular expression objects (most of them are used in other parts of the n6sdk library).

n6sdk.regexes.CC_SIMPLE_REGEX = <_sre.SRE_Pattern object at 0x7faf7b24a4b0>

Two-character country code.

Used by n6sdk.data_spec.fields.CCField.

n6sdk.regexes.DOMAIN_ASCII_LOWERCASE_REGEX = <_sre.SRE_Pattern object at 0x7faf7b5aae10>

Domain name – with the underscore character allowed (as life is more eventful than RFCs, especially when it comes to maliciously constructed domain names).

Used by n6sdk.data_spec.fields.DomainNameField and n6sdk.data_spec.fields.DomainNameSubstringField.

n6sdk.regexes.DOMAIN_ASCII_LOWERCASE_STRICT_REGEX = <_sre.SRE_Pattern object at 0x7faf7b5461d8>

Domain name – more strict (hopefully RFC-compliant) variant.

n6sdk.regexes.IPv4_ANONYMIZED_REGEX = <_sre.SRE_Pattern object at 0x2316790>

Anonymized IPv4 address.

Used by n6sdk.data_spec.fields.AnonymizedIPv4Field.

n6sdk.regexes.IPv4_CIDR_NETWORK_REGEX = <_sre.SRE_Pattern object at 0x249de10>

IPv4 network specification in CIDR notation.

Used by n6sdk.data_spec.fields.IPv4NetField.

n6sdk.regexes.IPv4_STRICT_DECIMAL_REGEX = <_sre.SRE_Pattern object at 0x2488670>

IPv4 address in decimal dotted-quad notation.

Used by n6sdk.data_spec.fields.IPv4Field.

Previous topic

n6sdk.encoding_helpers

Next topic

Release Notes

This Page