gbdx_task_template/port.py
def is_valid_s3_url(url):
        """Checks if the url contains S3. Not an accurate validation of the url"""
        # Skip if the url start with source: (gbdxtools syntax)
        if url.startswith('source:'):
            return True

        scheme, netloc, path, _, _, _ = urlparse(url)

        port_except = RemotePortValidationError(
            'Port value %s is not a valid s3 location' % url
        )

        if len(scheme) < 2:
            raise port_except

        if 's3' in scheme or 's3' in netloc or 's3' in path:
            return True
        else:
            raise port_except
def is_valid_s3_url(url):
        # Skip if the url start with source: (gbdxtools syntax)
        if url.startswith('source:'):
            return True

        scheme, netloc, path, _, _, _ = urlparse(url)

        port_except = RemotePortValidationError(
            'Port value %s is not a valid s3 location' % url
        )

        if len(scheme) < 2:
            raise port_except

        if 's3' in scheme or 's3' in netloc or 's3' in path:
            return True
        else:
            raise port_except
def is_valid_s3_url ( url ) : # Skip if the url start with source: (gbdxtools syntax) if url . startswith ( 'source:' ) : return True scheme , netloc , path , _ , _ , _ = urlparse ( url ) port_except = RemotePortValidationError ( 'Port value %s is not a valid s3 location' % url ) if len ( scheme ) < 2 : raise port_except if 's3' in scheme or 's3' in netloc or 's3' in path : return True else : raise port_except
Checks if the url contains S3. Not an accurate validation of the url
Checks if the url contains S3 . Not an accurate validation of the url