This commit is contained in:
2025-04-11 21:28:02 -03:00
parent 5b5e381191
commit 1b2ebcfb99
6 changed files with 107 additions and 62 deletions

View File

@@ -92,6 +92,7 @@ if __name__ == '__main__':
for file in tqdm(jsonl_files, desc='Processing files'):
with jsonlines.open(f'seeds/{file}') as lines:
table_name = file.removesuffix('.jsonl')
reader = jsonlines.Reader(fp)
for line in tqdm(lines, desc=f'Processing lines in {file}'):
put_item(line, table_name, dynamodb_client)