docs: def constants(self):
          """
          Gets the constants from the class that acts like a namespace for constants.
  
          :rtype: dict<str,*>
          """
          ret = {}
  
          name = self.__class_name.split('.')[-1]
          constant_class = getattr(self.__module, name)
          for name, value in constant_class.__dict__.items():
              if re.match(r'^[A-Z][A-Z0-9_]*$', name):
                  ret[name] = value
  
          return ret