tlx/dynamodb/batch.py
def load_scan_dump(dump_file, table=None):
    """
        Loads the results of a scan opperation into a table.

        Details:
        Takes the output of a `scan` operation such as: `aws dynamodb scan --table-name <TableName>`
        and writes to an existing table. Similar to the `aws dynamodb batch-write-item` command except:
            - No limit to amount of items in the upload (25 with awscli)
            - Take the output of a table scan, requiring no reformatting
    """

    table = get_ddb_table(table)
    items = json.load(dump_file)['Items']
    # TODO: Make this a generator (problem is testing it)
    batch_write(table, [_pull_values(item) for item in items])

        Loads the results of a scan opperation into a table.

        Details:
        Takes the output of a `scan` operation such as: `aws dynamodb scan --table-name <TableName>`
        and writes to an existing table. Similar to the `aws dynamodb batch-write-item` command except:
            - No limit to amount of items in the upload (25 with awscli)
            - Take the output of a table scan, requiring no reformatting
    
Loads the results of a scan opperation into a table.
Details:
Takes the output of a `scan` operation such as: `aws dynamodb scan --table-name `
and writes to an existing table. Similar to the `aws dynamodb batch-write-item` command except:
No limit to amount of items in the upload (25 with awscli)
Take the output of a table scan, requiring no reformatting
Loads the results of a scan opperation into a table . Details : Takes the output of a ` scan ` operation such as : ` aws dynamodb scan -- table - name ` and writes to an existing table . Similar to the ` aws dynamodb batch - write - item ` command except : No limit to amount of items in the upload ( 25 with awscli ) Take the output of a table scan requiring no reformatting
def load_scan_dump(dump_file, table=None):
    table = get_ddb_table(table)
    items = json.load(dump_file)['Items']
    batch_write(table, [_pull_values(item) for item in items])
def load_scan_dump ( dump_file , table = None ) : table = get_ddb_table ( table ) items = json . load ( dump_file ) [ 'Items' ] batch_write ( table , [ _pull_values ( item ) for item in items ] )
Loads the results of a scan opperation into a table.
Loads the results of a scan opperation into a table .
"""
        Loads the results of a scan opperation into a table.

        Details:
        Takes the output of a `scan` operation such as: `aws dynamodb scan --table-name <TableName>`
        and writes to an existing table. Similar to the `aws dynamodb batch-write-item` command except:
            - No limit to amount of items in the upload (25 with awscli)
            - Take the output of a table scan, requiring no reformatting
    """ # TODO: Make this a generator (problem is testing it)
dump_file
table