runtimepy.mixins.regex
index
/home/vkottler/src/vkottler/workspace/runtimepy/runtimepy/mixins/regex.py

A class mixin for classes that have a regular expression that they wish to
validate names with.

 
Classes
       
builtins.object
RegexMixin

 
class RegexMixin(builtins.object)
    A simple class mixin for validating names.
 
  Class methods defined here:
validate_name(name: str, logger: Union[logging.Logger, logging.LoggerAdapter[Any]] = None) -> bool from builtins.type
Determine if a name is valid for this class.

Data descriptors defined here:
__dict__
dictionary for instance variables
__weakref__
list of weak references to the object

Data and other attributes defined here:
__annotations__ = {'name_regex': typing.Optional[re.Pattern]}
name_regex = re.compile('^[\\w\\:.-]+$')

 
Data
        CHANNEL_PATTERN = re.compile('^[a-z0-9_.-]+$')
DEFAULT_PATTERN = re.compile('^[\\w\\:.-]+$')
LoggerType = typing.Union[logging.Logger, logging.LoggerAdapter[typing.Any]]
Optional = typing.Optional