scraper/tfs/__init__.py
def create_tfs_project_analysis_client(url, token=None):
    """
    Create a project_analysis_client.py client for a Team Foundation Server Enterprise connection instance.
    This is helpful for understanding project languages, but currently blank for all our test conditions.

    If token is not provided, will attempt to use the TFS_API_TOKEN
    environment variable if present.
    """
    if token is None:
        token = os.environ.get('TFS_API_TOKEN', None)

    tfs_connection = create_tfs_connection(url, token)
    project_analysis_client = tfs_connection.get_client('vsts.project_analysis.v4_1.project_analysis_client.ProjectAnalysisClient')

    if project_analysis_client is None:
        msg = 'Unable to connect to TFS Enterprise (%s) with provided token.'
        raise RuntimeError(msg, url)

    return project_analysis_client
def create_tfs_project_analysis_client(url, token=None):
    if token is None:
        token = os.environ.get('TFS_API_TOKEN', None)

    tfs_connection = create_tfs_connection(url, token)
    project_analysis_client = tfs_connection.get_client('vsts.project_analysis.v4_1.project_analysis_client.ProjectAnalysisClient')

    if project_analysis_client is None:
        msg = 'Unable to connect to TFS Enterprise (%s) with provided token.'
        raise RuntimeError(msg, url)

    return project_analysis_client
def create_tfs_project_analysis_client ( url , token = None ) : if token is None : token = os . environ . get ( 'TFS_API_TOKEN' , None ) tfs_connection = create_tfs_connection ( url , token ) project_analysis_client = tfs_connection . get_client ( 'vsts.project_analysis.v4_1.project_analysis_client.ProjectAnalysisClient' ) if project_analysis_client is None : msg = 'Unable to connect to TFS Enterprise (%s) with provided token.' raise RuntimeError ( msg , url ) return project_analysis_client
Create a project_analysis_client.py client for a Team Foundation Server Enterprise connection instance.
    This is helpful for understanding project languages, but currently blank for all our test conditions.

    If token is not provided, will attempt to use the TFS_API_TOKEN
    environment variable if present.
Create a project_analysis_client . py client for a Team Foundation Server Enterprise connection instance . This is helpful for understanding project languages but currently blank for all our test conditions .