utils.py
def chunks(list_of_features, n, agol_layer):
    """
    Yield successive n-sized chunks from list_of_features.
    list_of_features: list. List of features to be updated.
    n: numeric. chunk size, 1000 is the max for AGOL feature layer
    agol_layer: AGOL layer.
                Ex: 
                flayer = gis.content.get(feature_layer_id)
                agol_layer = flayer.layers[0]
    """
    for i in range(0, len(list_of_features), n):
        chunk_list=list_of_features[i:i + n]
        agol_layer.edit_features(updates=chunk_list)
        print("update successful")

    Yield successive n-sized chunks from list_of_features.
    list_of_features: list. List of features to be updated.
    n: numeric. chunk size, 1000 is the max for AGOL feature layer
    agol_layer: AGOL layer.
                Ex: 
                flayer = gis.content.get(feature_layer_id)
                agol_layer = flayer.layers[0]
    
Yield successive n-sized chunks from list_of_features.
Yield successive n - sized chunks from list_of_features .
def chunks(list_of_features, n, agol_layer):
    for i in range(0, len(list_of_features), n):
        chunk_list=list_of_features[i:i + n]
        agol_layer.edit_features(updates=chunk_list)
        print("update successful")
def chunks ( list_of_features , n , agol_layer ) : for i in range ( 0 , len ( list_of_features ) , n ) : chunk_list = list_of_features [ i : i + n ] agol_layer . edit_features ( updates = chunk_list ) print ( "update successful" )
Yield successive n-sized chunks from list_of_features.
Yield successive n - sized chunks from list_of_features .
"""
    Yield successive n-sized chunks from list_of_features.
    list_of_features: list. List of features to be updated.
    n: numeric. chunk size, 1000 is the max for AGOL feature layer
    agol_layer: AGOL layer.
                Ex: 
                flayer = gis.content.get(feature_layer_id)
                agol_layer = flayer.layers[0]
    """
list_of_features
n
agol_layer