def _generate_services(self): for service_name in services_list: normalized_name = normalize_service_name(service_name) snake_name = normalized_name.replace('-', '_') generated_service = Service(self, normalized_name) setattr(self, snake_name, generated_service)
def service_name(cls): return normalize_service_name(cls.__name__)
def service(cls): if cls._service is None: cls._service = normalize_service_name(cls.__name__) return cls._service
def _generate_services(self): for service in services_list: normalized_name = normalize_service_name(service) snake_name = normalized_name.replace('-', '_') generated_service = Service(self, normalized_name) setattr(self, snake_name, generated_service)