vcp/project_handler_base.py
def create(self, uri, local_path):
        """Create a project handler

        Args:
            uri (str): schema://something formatted uri
            local_path (str): the project configs directory

        Return:
            ProjectHandler derived class instance
        """
        matches = self.schema_pattern.search(uri)

        if not matches:
            logger.error("Unknown uri schema: '%s'. Added schemas: %s", uri, list(self.handlers.keys()))
            return None

        schema = matches.group(1)
        url = matches.group(2)

        return self.handlers[schema](url, local_path)
def create(self, uri, local_path):
        matches = self.schema_pattern.search(uri)

        if not matches:
            logger.error("Unknown uri schema: '%s'. Added schemas: %s", uri, list(self.handlers.keys()))
            return None

        schema = matches.group(1)
        url = matches.group(2)

        return self.handlers[schema](url, local_path)
def create ( self , uri , local_path ) : matches = self . schema_pattern . search ( uri ) if not matches : logger . error ( "Unknown uri schema: '%s'. Added schemas: %s" , uri , list ( self . handlers . keys ( ) ) ) return None schema = matches . group ( 1 ) url = matches . group ( 2 ) return self . handlers [ schema ] ( url , local_path )
Create a project handler

        Args:
            uri (str): schema://something formatted uri
            local_path (str): the project configs directory

        Return:
            ProjectHandler derived class instance
Create a project handler