src/canvas-extractor/edfi_canvas_extractor/api/assignments.py
def assignments_synced_as_df(
    assignments: List[Assignment],
    sync_db: sqlalchemy.engine.base.Engine,
) -> DataFrame:
    """
    Fetch Assignments API data for a range of courses and return a Assignments API DataFrame
    with current and previously fetched data

    Parameters
    ----------
    assignments: List[Assignment]
        a list of Canvas Assignments objects
    sync_db: sqlalchemy.engine.base.Engine
        an Engine instance for creating database connections

    Returns
    -------
    DataFrame
        a Assignments API DataFrame with the current and previously fetched data
    """

    assignments_df: DataFrame = _sync_without_cleanup(to_df(assignments), sync_db)
    cleanup_after_sync(ASSIGNMENTS_RESOURCE_NAME, sync_db)

    return assignments_df

    Fetch Assignments API data for a range of courses and return a Assignments API DataFrame
    with current and previously fetched data

    Parameters
    ----------
    assignments: List[Assignment]
        a list of Canvas Assignments objects
    sync_db: sqlalchemy.engine.base.Engine
        an Engine instance for creating database connections

    Returns
    -------
    DataFrame
        a Assignments API DataFrame with the current and previously fetched data
    
Fetch Assignments API data for a range of courses and return a Assignments API DataFrame
with current and previously fetched data

Parameters

List[Assignment]
a list of Canvas Assignments objects
sync_db: sqlalchemy.engine.base.Engine
an Engine instance for creating database connections

Returns

DataFrame
a Assignments API DataFrame with the current and previously fetched data
Fetch Assignments API data for a range of courses and return a Assignments API DataFrame with current and previously fetched data Parameters List [ Assignment ] a list of Canvas Assignments objects sync_db : sqlalchemy . engine . base . Engine an Engine instance for creating database connections Returns DataFrame a Assignments API DataFrame with the current and previously fetched data
def assignments_synced_as_df(
    assignments: List[Assignment],
    sync_db: sqlalchemy.engine.base.Engine,
) -> DataFrame:
    assignments_df: DataFrame = _sync_without_cleanup(to_df(assignments), sync_db)
    cleanup_after_sync(ASSIGNMENTS_RESOURCE_NAME, sync_db)
    return assignments_df
def assignments_synced_as_df ( assignments : List [ Assignment ] , sync_db : sqlalchemy . engine . base . Engine , ) -> DataFrame : assignments_df : DataFrame = _sync_without_cleanup ( to_df ( assignments ) , sync_db ) cleanup_after_sync ( ASSIGNMENTS_RESOURCE_NAME , sync_db ) return assignments_df
Fetch Assignments API data for a range of courses and return a Assignments API DataFrame
with current and previously fetched data
Fetch Assignments API data for a range of courses and return a Assignments API DataFrame with current and previously fetched data
"""
    Fetch Assignments API data for a range of courses and return a Assignments API DataFrame
    with current and previously fetched data

    Parameters
    ----------
    assignments: List[Assignment]
        a list of Canvas Assignments objects
    sync_db: sqlalchemy.engine.base.Engine
        an Engine instance for creating database connections

    Returns
    -------
    DataFrame
        a Assignments API DataFrame with the current and previously fetched data
    """
assignments
List[Assignment]
sync_db
sqlalchemy.engine.base.Engine