kojistatus/status.py
def status(username=None, *, kojiurl=None, session=None):
    """
    For given username, return the last builds with status information.
    Returns an iterable of 2-tuples, sorted descending.

    Only the first page with maximum 50 results is fetched.
    """
    kojiurl = kojiurl or 'https://koji.fedoraproject.org/'
    session = session or requests.Session()
    url = '{}koji/tasks'.format(kojiurl)
    params = {
        'state': 'all',
        'view': 'toplevel'
    }
    if username:
        params['owner'] = username
    response = session.get(url, params=params)
    response.raise_for_status()
    return _parse(response.text)

    For given username, return the last builds with status information.
    Returns an iterable of 2-tuples, sorted descending.

    Only the first page with maximum 50 results is fetched.
    
For given username, return the last builds with status information.
Returns an iterable of 2-tuples, sorted descending.

Only the first page with maximum 50 results is fetched.
For given username return the last builds with status information . Returns an iterable of 2 - tuples sorted descending . Only the first page with maximum 50 results is fetched .
def status(username=None, *, kojiurl=None, session=None):
    kojiurl = kojiurl or 'https://koji.fedoraproject.org/'
    session = session or requests.Session()
    url = '{}koji/tasks'.format(kojiurl)
    params = {
        'state': 'all',
        'view': 'toplevel'
    }
    if username:
        params['owner'] = username
    response = session.get(url, params=params)
    response.raise_for_status()
    return _parse(response.text)
def status ( username = None , * , kojiurl = None , session = None ) : kojiurl = kojiurl or 'https://koji.fedoraproject.org/' session = session or requests . Session ( ) url = '{}koji/tasks' . format ( kojiurl ) params = { 'state' : 'all' , 'view' : 'toplevel' } if username : params [ 'owner' ] = username response = session . get ( url , params = params ) response . raise_for_status ( ) return _parse ( response . text )
For given username, return the last builds with status information.
For given username return the last builds with status information .
"""
    For given username, return the last builds with status information.
    Returns an iterable of 2-tuples, sorted descending.

    Only the first page with maximum 50 results is fetched.
    """
username
kojiurl
session