Skip to content

Instantly share code, notes, and snippets.

View pristley's full-sized avatar
🤖
love alone is worth the fight

pristley

🤖
love alone is worth the fight
View GitHub Profile
@pristley
pristley / gist:07fb45eb0a9e4a6f06b125418dfd5345
Created May 17, 2020 04:56 — forked from griggheo/gist:2698152
dynamodb batchwriteitem in boto
import os
import sys
import subprocess
import re
import optparse
import boto
dynamodb_conn = boto.connect_dynamodb(aws_access_key_id='MY_ACCESS_KEY_ID', aws_secret_access_key='MY_SECRET_ACCESS_KEY')
table_name = 'mytable'
dynamodb_table = dynamodb_conn.get_table(table_name)