Welcome to database_cloud_tutorials’s documentation!

Product

class product.Product(asin: str, timestamp: str, price: str)[source]
Parameters
  • asin (str) – amazon SKU id number

  • timestamp (str) – calendar time for which product price is found

  • price (str) – price of item in US $

getItem() → dict[source]

Get data in table

Returns

dict[dict]

static getKeyAttributeDefs() → list[source]
Returns

list[dict]

static getKeySchema() → list[source]
Returns

list[dict]

Dynamo DB

class dynamo_db.DynamoDBProduct(client, *args)[source]

Save product data into dynamo db

Parameters
  • table_name (str) – name of table, set to "Products"

  • client (boto3.client) – aws client, set as dynamodb

Todo

should we have a table class instead?

createTable()[source]

Create table

deleteTable()[source]

Delete table

putItem()[source]

Save table in dynamo db?. Print response

dynamo_db.dynamoDbTutorial()[source]

Tutorial workflow for dynamo db

Indices and tables