Skip to content

Commit 9a86a42

Browse files
authored
Merge pull request #3 from MacHu-GWU/6.X
6.0.0.1
2 parents c1bb9ff + 68742be commit 9a86a42

File tree

35 files changed

+2903
-2166
lines changed

35 files changed

+2903
-2166
lines changed

.coveragerc

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ omit =
66
pynamodb_mate/docs/*
77
pynamodb_mate/tests/*
88
pynamodb_mate/vendor/*
9-
pynamodb_mate/paths
9+
pynamodb_mate/paths.py
1010

1111
[report]
1212
# Regexes for lines to exclude from consideration

docs/source/01-Store-Large-Object-in-DynamoDB/index.ipynb

+20-10
Large diffs are not rendered by default.

docs/source/02-Client-Side-Encryption/index.ipynb

+12-12
Original file line numberDiff line numberDiff line change
@@ -193,25 +193,25 @@
193193
"<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\"><span style=\"font-weight: bold\">{</span>\n",
194194
" <span style=\"color: #008000; text-decoration-color: #008000\">'aid'</span>: <span style=\"font-weight: bold\">{</span><span style=\"color: #008000; text-decoration-color: #008000\">'S'</span>: <span style=\"color: #008000; text-decoration-color: #008000\">'aid-001'</span><span style=\"font-weight: bold\">}</span>,\n",
195195
" <span style=\"color: #008000; text-decoration-color: #008000\">'secret_integer'</span>: <span style=\"font-weight: bold\">{</span><span style=\"color: #008000; text-decoration-color: #008000\">'B'</span>: <span style=\"color: #008000; text-decoration-color: #008000\">b'K\\x02\\x9c\\xf4\\x8c8@\\xcfn\\xce\\xb7NV\\x8d\\rH'</span><span style=\"font-weight: bold\">}</span>,\n",
196-
" <span style=\"color: #008000; text-decoration-color: #008000\">'secret_binary'</span>: <span style=\"font-weight: bold\">{</span><span style=\"color: #008000; text-decoration-color: #008000\">'B'</span>: <span style=\"color: #008000; text-decoration-color: #008000\">b'{\"nonce\": \"9i9kp7|C$q\", \"token\": \"s*@r77lH86n9{cse;N\"}'</span><span style=\"font-weight: bold\">}</span>,\n",
197-
" <span style=\"color: #008000; text-decoration-color: #008000\">'secret_data'</span>: <span style=\"font-weight: bold\">{</span><span style=\"color: #008000; text-decoration-color: #008000\">'B'</span>: <span style=\"color: #008000; text-decoration-color: #008000\">b'{\"nonce\": \"=Q80xe6dN)\", \"token\": \"&gt;$yq4`&amp;owIDv=3I1t^e*54&gt;`ditCwMUJPG)^g|KZCqM\"}'</span><span style=\"font-weight: bold\">}</span>,\n",
198-
" <span style=\"color: #008000; text-decoration-color: #008000\">'secret_message'</span>: <span style=\"font-weight: bold\">{</span>\n",
199-
" <span style=\"color: #008000; text-decoration-color: #008000\">'B'</span>: <span style=\"color: #008000; text-decoration-color: #008000\">b'\\x89\\x17\\x17]\\xad@\\xab\\xda\\xd9\\x13\\xd9\\xe9\\xb5\\xc2,\\x02F+gxO\\x8b\\xebI\\x88[J&lt;\\x90\\xee\\xdc\\xff'</span>\n",
200-
" <span style=\"font-weight: bold\">}</span>,\n",
201-
" <span style=\"color: #008000; text-decoration-color: #008000\">'secret_float'</span>: <span style=\"font-weight: bold\">{</span><span style=\"color: #008000; text-decoration-color: #008000\">'B'</span>: <span style=\"color: #008000; text-decoration-color: #008000\">b'{\"nonce\": \"0g?x(A@}Os\", \"token\": \"s^Nd;\"}'</span><span style=\"font-weight: bold\">}</span>\n",
196+
" <span style=\"color: #008000; text-decoration-color: #008000\">'secret_binary'</span>: <span style=\"font-weight: bold\">{</span><span style=\"color: #008000; text-decoration-color: #008000\">'B'</span>: <span style=\"color: #008000; text-decoration-color: #008000\">b'{\"nonce\": \"h7PYfVMR0%\", \"token\": \"&lt;5UTbuxi_674Yx|q{I\"}'</span><span style=\"color: #000000; text-decoration-color: #000000; font-weight: bold\">}</span><span style=\"color: #000000; text-decoration-color: #000000\">,</span>\n",
197+
"<span style=\"color: #000000; text-decoration-color: #000000\"> </span><span style=\"color: #008000; text-decoration-color: #008000\">'secret_data'</span><span style=\"color: #000000; text-decoration-color: #000000\">: </span><span style=\"color: #000000; text-decoration-color: #000000; font-weight: bold\">{</span><span style=\"color: #008000; text-decoration-color: #008000\">'B'</span><span style=\"color: #000000; text-decoration-color: #000000\">: </span><span style=\"color: #008000; text-decoration-color: #008000\">b'{\"nonce\": \"*6nD)O5pyI\", \"token\": \"_MV*k4Y{(WmL01-?L~jawW#Is3ixE(kTpDUl#_!$G4}\"}'</span><span style=\"color: #000000; text-decoration-color: #000000; font-weight: bold\">}</span><span style=\"color: #000000; text-decoration-color: #000000\">,</span>\n",
198+
"<span style=\"color: #000000; text-decoration-color: #000000\"> </span><span style=\"color: #008000; text-decoration-color: #008000\">'secret_message'</span><span style=\"color: #000000; text-decoration-color: #000000\">: </span><span style=\"color: #000000; text-decoration-color: #000000; font-weight: bold\">{</span>\n",
199+
"<span style=\"color: #000000; text-decoration-color: #000000\"> </span><span style=\"color: #008000; text-decoration-color: #008000\">'B'</span><span style=\"color: #000000; text-decoration-color: #000000\">: </span><span style=\"color: #008000; text-decoration-color: #008000\">b'\\x89\\x17\\x17]\\xad@\\xab\\xda\\xd9\\x13\\xd9\\xe9\\xb5\\xc2,\\x02F+gxO\\x8b\\xebI\\x88[J&lt;\\x90\\xee\\xdc\\xff'</span>\n",
200+
"<span style=\"color: #000000; text-decoration-color: #000000\"> </span><span style=\"color: #000000; text-decoration-color: #000000; font-weight: bold\">}</span><span style=\"color: #000000; text-decoration-color: #000000\">,</span>\n",
201+
"<span style=\"color: #000000; text-decoration-color: #000000\"> </span><span style=\"color: #008000; text-decoration-color: #008000\">'secret_float'</span><span style=\"color: #000000; text-decoration-color: #000000\">: </span><span style=\"color: #000000; text-decoration-color: #000000; font-weight: bold\">{</span><span style=\"color: #008000; text-decoration-color: #008000\">'B'</span><span style=\"color: #000000; text-decoration-color: #000000\">: </span><span style=\"color: #008000; text-decoration-color: #008000\">b'{\"nonce\": \"FTIU)7&gt;ayz\", \"token\": \"o|_U!\"}'</span><span style=\"font-weight: bold\">}</span>\n",
202202
"<span style=\"font-weight: bold\">}</span>\n",
203203
"</pre>\n"
204204
],
205205
"text/plain": [
206206
"\u001b[1m{\u001b[0m\n",
207207
" \u001b[32m'aid'\u001b[0m: \u001b[1m{\u001b[0m\u001b[32m'S'\u001b[0m: \u001b[32m'aid-001'\u001b[0m\u001b[1m}\u001b[0m,\n",
208208
" \u001b[32m'secret_integer'\u001b[0m: \u001b[1m{\u001b[0m\u001b[32m'B'\u001b[0m: \u001b[32mb'K\\x02\\x9c\\xf4\\x8c8@\\xcfn\\xce\\xb7NV\\x8d\\rH'\u001b[0m\u001b[1m}\u001b[0m,\n",
209-
" \u001b[32m'secret_binary'\u001b[0m: \u001b[1m{\u001b[0m\u001b[32m'B'\u001b[0m: \u001b[32mb'\u001b[0m\u001b[32m{\u001b[0m\u001b[32m\"nonce\": \"9i9kp7|C$q\", \"token\": \"s*@r77lH86n9\u001b[0m\u001b[32m{\u001b[0m\u001b[32mcse;N\"\u001b[0m\u001b[32m}\u001b[0m\u001b[32m'\u001b[0m\u001b[1m}\u001b[0m,\n",
210-
" \u001b[32m'secret_data'\u001b[0m: \u001b[1m{\u001b[0m\u001b[32m'B'\u001b[0m: \u001b[32mb'\u001b[0m\u001b[32m{\u001b[0m\u001b[32m\"nonce\": \"=Q80xe6dN\u001b[0m\u001b[32m)\u001b[0m\u001b[32m\", \"token\": \">$yq4`&\u001b[0m\u001b[32mowIDv\u001b[0m\u001b[32m=\u001b[0m\u001b[32m3I1t\u001b[0m\u001b[32m^e*54>`ditCwMUJPG\u001b[0m\u001b[32m)\u001b[0m\u001b[32m^g|KZCqM\"\u001b[0m\u001b[32m}\u001b[0m\u001b[32m'\u001b[0m\u001b[1m}\u001b[0m,\n",
211-
" \u001b[32m'secret_message'\u001b[0m: \u001b[1m{\u001b[0m\n",
212-
" \u001b[32m'B'\u001b[0m: \u001b[32mb'\\x89\\x17\\x17\u001b[0m\u001b[32m]\u001b[0m\u001b[32m\\xad@\\xab\\xda\\xd9\\x13\\xd9\\xe9\\xb5\\xc2,\\x02F+gxO\\x8b\\xebI\\x88\u001b[0m\u001b[32m[\u001b[0m\u001b[32mJ<\\x90\\xee\\xdc\\xff'\u001b[0m\n",
213-
" \u001b[1m}\u001b[0m,\n",
214-
" \u001b[32m'secret_float'\u001b[0m: \u001b[1m{\u001b[0m\u001b[32m'B'\u001b[0m: \u001b[32mb'\u001b[0m\u001b[32m{\u001b[0m\u001b[32m\"nonce\": \"0g?x\u001b[0m\u001b[32m(\u001b[0m\u001b[32mA@\u001b[0m\u001b[32m}\u001b[0m\u001b[32mOs\", \"token\": \"s^Nd;\"\u001b[0m\u001b[32m}\u001b[0m\u001b[32m'\u001b[0m\u001b[1m}\u001b[0m\n",
209+
" \u001b[32m'secret_binary'\u001b[0m: \u001b[1m{\u001b[0m\u001b[32m'B'\u001b[0m: \u001b[32mb'\u001b[0m\u001b[32m{\u001b[0m\u001b[32m\"nonce\": \"h7PYfVMR0%\", \"token\": \"\u001b[0m\u001b[32m<\u001b[0m\u001b[32m5UTbuxi_674Yx|q\u001b[0m\u001b[32m{\u001b[0m\u001b[32mI\"\u001b[0m\u001b[32m}\u001b[0m\u001b[32m'\u001b[0m\u001b[1;39m}\u001b[0m\u001b[39m,\u001b[0m\n",
210+
"\u001b[39m \u001b[0m\u001b[32m'secret_data'\u001b[0m\u001b[39m: \u001b[0m\u001b[1;39m{\u001b[0m\u001b[32m'B'\u001b[0m\u001b[39m: \u001b[0m\u001b[32mb'\u001b[0m\u001b[32m{\u001b[0m\u001b[32m\"nonce\": \"*6nD\u001b[0m\u001b[32m)\u001b[0m\u001b[32mO5pyI\", \"token\": \"_MV*k4Y\u001b[0m\u001b[32m{\u001b[0m\u001b[32m(\u001b[0m\u001b[32mWmL01-?L~jawW#Is3ixE\u001b[0m\u001b[32m(\u001b[0m\u001b[32mkTpDUl#_!$G4\u001b[0m\u001b[32m}\u001b[0m\u001b[32m\"\u001b[0m\u001b[32m}\u001b[0m\u001b[32m'\u001b[0m\u001b[1;39m}\u001b[0m\u001b[39m,\u001b[0m\n",
211+
"\u001b[39m \u001b[0m\u001b[32m'secret_message'\u001b[0m\u001b[39m: \u001b[0m\u001b[1;39m{\u001b[0m\n",
212+
"\u001b[39m \u001b[0m\u001b[32m'B'\u001b[0m\u001b[39m: \u001b[0m\u001b[32mb'\\x89\\x17\\x17\u001b[0m\u001b[32m]\u001b[0m\u001b[32m\\xad@\\xab\\xda\\xd9\\x13\\xd9\\xe9\\xb5\\xc2,\\x02F+gxO\\x8b\\xebI\\x88\u001b[0m\u001b[32m[\u001b[0m\u001b[32mJ<\\x90\\xee\\xdc\\xff'\u001b[0m\n",
213+
"\u001b[39m \u001b[0m\u001b[1;39m}\u001b[0m\u001b[39m,\u001b[0m\n",
214+
"\u001b[39m \u001b[0m\u001b[32m'secret_float'\u001b[0m\u001b[39m: \u001b[0m\u001b[1;39m{\u001b[0m\u001b[32m'B'\u001b[0m\u001b[39m: \u001b[0m\u001b[32mb'\u001b[0m\u001b[32m{\u001b[0m\u001b[32m\"nonce\": \"FTIU\u001b[0m\u001b[32m)\u001b[0m\u001b[32m7\u001b[0m\u001b[32m>\u001b[0m\u001b[32mayz\", \"token\": \"o|_U!\"\u001b[0m\u001b[32m}\u001b[0m\u001b[32m'\u001b[0m\u001b[1m}\u001b[0m\n",
215215
"\u001b[1m}\u001b[0m\n"
216216
]
217217
},

docs/source/03-Compressed-Attribute/index.ipynb

+8-8
Original file line numberDiff line numberDiff line change
@@ -171,19 +171,19 @@
171171
"<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\"><span style=\"font-weight: bold\">{</span>\n",
172172
" <span style=\"color: #008000; text-decoration-color: #008000\">'order_id'</span>: <span style=\"font-weight: bold\">{</span><span style=\"color: #008000; text-decoration-color: #008000\">'S'</span>: <span style=\"color: #008000; text-decoration-color: #008000\">'order_001'</span><span style=\"font-weight: bold\">}</span>,\n",
173173
" <span style=\"color: #008000; text-decoration-color: #008000\">'description'</span>: <span style=\"font-weight: bold\">{</span>\n",
174-
" <span style=\"color: #008000; text-decoration-color: #008000\">'B'</span>: <span style=\"color: #008000; text-decoration-color: #008000\">b'\\x1f\\x8b\\x08\\x00\\x14QNf\\x02\\xff\\xed\\xc7\\xb7\\r\\x00 </span>\n",
174+
" <span style=\"color: #008000; text-decoration-color: #008000\">'B'</span>: <span style=\"color: #008000; text-decoration-color: #008000\">b'\\x1f\\x8b\\x08\\x00\\x9e\\x8fNf\\x02\\xff\\xed\\xc7\\xb7\\r\\x00 </span>\n",
175175
"<span style=\"color: #008000; text-decoration-color: #008000\">\\x0c\\x00\\xb0W\\xc2i\\x11e\\x04)\\x1b\\xdf\\xf3\\x03\\xb3\\xbd9c\\xe5\\xee7N\\x8dY-\\xcd\\xcc\\xcc\\xcc\\xcc\\xcc\\xcc\\xcc\\xcc\\xcc\\xcc\\</span>\n",
176176
"<span style=\"color: #008000; text-decoration-color: #008000\">xcc\\xcc\\xcc\\xcc\\xcc\\xcc\\xcc\\xcc\\xcc\\xcc\\xcc\\xcc\\xcc\\xcc\\xcc\\xcc\\xbe\\xf6\\x00\\xf5\\x991\\x81\\xb06\\x00\\x00'</span>\n",
177177
" <span style=\"font-weight: bold\">}</span>,\n",
178178
" <span style=\"color: #008000; text-decoration-color: #008000\">'image'</span>: <span style=\"font-weight: bold\">{</span>\n",
179-
" <span style=\"color: #008000; text-decoration-color: #008000\">'B'</span>: <span style=\"color: #008000; text-decoration-color: #008000\">b'\\x1f\\x8b\\x08\\x00\\x14QNf\\x02\\xff\\xed\\xc7\\xb7\\r\\x00 </span>\n",
179+
" <span style=\"color: #008000; text-decoration-color: #008000\">'B'</span>: <span style=\"color: #008000; text-decoration-color: #008000\">b'\\x1f\\x8b\\x08\\x00\\x9e\\x8fNf\\x02\\xff\\xed\\xc7\\xb7\\r\\x00 </span>\n",
180180
"<span style=\"color: #008000; text-decoration-color: #008000\">\\x0c\\x00\\xb0W\\xc2i\\x11e\\x04)\\x1b\\xdf\\xf3\\x03\\xb3\\xbd9c\\xe5\\xee7N\\x8dY-\\xcd\\xcc\\xcc\\xcc\\xcc\\xcc\\xcc\\xcc\\xcc\\xcc\\xcc\\</span>\n",
181181
"<span style=\"color: #008000; text-decoration-color: #008000\">xcc\\xcc\\xcc\\xcc\\xcc\\xcc\\xcc\\xcc\\xcc\\xcc\\xcc\\xcc\\xcc\\xcc\\xcc\\xcc\\xbe\\xf6\\x00\\xf5\\x991\\x81\\xb06\\x00\\x00'</span>\n",
182182
" <span style=\"font-weight: bold\">}</span>,\n",
183183
" <span style=\"color: #008000; text-decoration-color: #008000\">'items'</span>: <span style=\"font-weight: bold\">{</span>\n",
184184
" <span style=\"color: #008000; text-decoration-color: #008000\">'B'</span>: \n",
185-
"<span style=\"color: #008000; text-decoration-color: #008000\">b'\\x1f\\x8b\\x08\\x00\\x14QNf\\x02\\xff\\x8b\\xaeV\\xca,I\\xcd\\x8d\\xcfLQ\\xb2RP\\xca\\x8c700T\\xd2Q\\x80\\x88\\xe5%\\xe6\\xa6\\x82D\\x13</span>\n",
186-
"<span style=\"color: #008000; text-decoration-color: #008000\">\\x0b\\nrR\\xe1\\xa2\\x05E\\x99\\xc9 </span>\n",
185+
"<span style=\"color: #008000; text-decoration-color: #008000\">b'\\x1f\\x8b\\x08\\x00\\x9e\\x8fNf\\x02\\xff\\x8b\\xaeV\\xca,I\\xcd\\x8d\\xcfLQ\\xb2RP\\xca\\x8c700T\\xd2Q\\x80\\x88\\xe5%\\xe6\\xa6\\x82D\\</span>\n",
186+
"<span style=\"color: #008000; text-decoration-color: #008000\">x13\\x0b\\nrR\\xe1\\xa2\\x05E\\x99\\xc9 </span>\n",
187187
"<span style=\"color: #008000; text-decoration-color: #008000\">a#=\\x13\\xa0Paib^IfI%P\\xc0\\xa2VG\\x01\\xc34#\\x0c\\xd3\\x92\\x12\\xf3\\x80\\x10\\xc38\\x03=ScT\\xf3Lkc\\x01I\\x1e\\xcf\\x15\\x9e\\x00\\</span>\n",
188188
"<span style=\"color: #008000; text-decoration-color: #008000\">x00\\x00'</span>\n",
189189
" <span style=\"font-weight: bold\">}</span>\n",
@@ -194,19 +194,19 @@
194194
"\u001b[1m{\u001b[0m\n",
195195
" \u001b[32m'order_id'\u001b[0m: \u001b[1m{\u001b[0m\u001b[32m'S'\u001b[0m: \u001b[32m'order_001'\u001b[0m\u001b[1m}\u001b[0m,\n",
196196
" \u001b[32m'description'\u001b[0m: \u001b[1m{\u001b[0m\n",
197-
" \u001b[32m'B'\u001b[0m: \u001b[32mb'\\x1f\\x8b\\x08\\x00\\x14QNf\\x02\\xff\\xed\\xc7\\xb7\\r\\x00 \u001b[0m\n",
197+
" \u001b[32m'B'\u001b[0m: \u001b[32mb'\\x1f\\x8b\\x08\\x00\\x9e\\x8fNf\\x02\\xff\\xed\\xc7\\xb7\\r\\x00 \u001b[0m\n",
198198
"\u001b[32m\\x0c\\x00\\xb0W\\xc2i\\x11e\\x04\u001b[0m\u001b[32m)\u001b[0m\u001b[32m\\x1b\\xdf\\xf3\\x03\\xb3\\xbd9c\\xe5\\xee7N\\x8dY-\\xcd\\xcc\\xcc\\xcc\\xcc\\xcc\\xcc\\xcc\\xcc\\xcc\\xcc\\\u001b[0m\n",
199199
"\u001b[32mxcc\\xcc\\xcc\\xcc\\xcc\\xcc\\xcc\\xcc\\xcc\\xcc\\xcc\\xcc\\xcc\\xcc\\xcc\\xcc\\xbe\\xf6\\x00\\xf5\\x991\\x81\\xb06\\x00\\x00'\u001b[0m\n",
200200
" \u001b[1m}\u001b[0m,\n",
201201
" \u001b[32m'image'\u001b[0m: \u001b[1m{\u001b[0m\n",
202-
" \u001b[32m'B'\u001b[0m: \u001b[32mb'\\x1f\\x8b\\x08\\x00\\x14QNf\\x02\\xff\\xed\\xc7\\xb7\\r\\x00 \u001b[0m\n",
202+
" \u001b[32m'B'\u001b[0m: \u001b[32mb'\\x1f\\x8b\\x08\\x00\\x9e\\x8fNf\\x02\\xff\\xed\\xc7\\xb7\\r\\x00 \u001b[0m\n",
203203
"\u001b[32m\\x0c\\x00\\xb0W\\xc2i\\x11e\\x04\u001b[0m\u001b[32m)\u001b[0m\u001b[32m\\x1b\\xdf\\xf3\\x03\\xb3\\xbd9c\\xe5\\xee7N\\x8dY-\\xcd\\xcc\\xcc\\xcc\\xcc\\xcc\\xcc\\xcc\\xcc\\xcc\\xcc\\\u001b[0m\n",
204204
"\u001b[32mxcc\\xcc\\xcc\\xcc\\xcc\\xcc\\xcc\\xcc\\xcc\\xcc\\xcc\\xcc\\xcc\\xcc\\xcc\\xcc\\xbe\\xf6\\x00\\xf5\\x991\\x81\\xb06\\x00\\x00'\u001b[0m\n",
205205
" \u001b[1m}\u001b[0m,\n",
206206
" \u001b[32m'items'\u001b[0m: \u001b[1m{\u001b[0m\n",
207207
" \u001b[32m'B'\u001b[0m: \n",
208-
"\u001b[32mb'\\x1f\\x8b\\x08\\x00\\x14QNf\\x02\\xff\\x8b\\xaeV\\xca,I\\xcd\\x8d\\xcfLQ\\xb2RP\\xca\\x8c700T\\xd2Q\\x80\\x88\\xe5%\\xe6\\xa6\\x82D\\x13\u001b[0m\n",
209-
"\u001b[32m\\x0b\\nrR\\xe1\\xa2\\x05E\\x99\\xc9 \u001b[0m\n",
208+
"\u001b[32mb'\\x1f\\x8b\\x08\\x00\\x9e\\x8fNf\\x02\\xff\\x8b\\xaeV\\xca,I\\xcd\\x8d\\xcfLQ\\xb2RP\\xca\\x8c700T\\xd2Q\\x80\\x88\\xe5%\\xe6\\xa6\\x82D\\\u001b[0m\n",
209+
"\u001b[32mx13\\x0b\\nrR\\xe1\\xa2\\x05E\\x99\\xc9 \u001b[0m\n",
210210
"\u001b[32ma#=\\x13\\xa0Paib^IfI%P\\xc0\\xa2VG\\x01\\xc34#\\x0c\\xd3\\x92\\x12\\xf3\\x80\\x10\\xc38\\\u001b[0m\u001b[32mx03\u001b[0m\u001b[32m=\u001b[0m\u001b[32mScT\u001b[0m\u001b[32m\\xf3Lkc\\x01I\\x1e\\xcf\\x15\\x9e\\x00\\\u001b[0m\n",
211211
"\u001b[32mx00\\x00'\u001b[0m\n",
212212
" \u001b[1m}\u001b[0m\n",

docs/source/05-Use-DynamoDB-as-Cache-Backend/index.ipynb

+16-6
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,16 @@
118118
")"
119119
]
120120
},
121+
{
122+
"cell_type": "code",
123+
"execution_count": 3,
124+
"metadata": {},
125+
"outputs": [],
126+
"source": [
127+
"# delete all item in the test table to ensure a fresh start\n",
128+
"cache.Table.delete_all();"
129+
]
130+
},
121131
{
122132
"cell_type": "markdown",
123133
"metadata": {
@@ -137,7 +147,7 @@
137147
},
138148
{
139149
"cell_type": "code",
140-
"execution_count": 3,
150+
"execution_count": 4,
141151
"metadata": {
142152
"ExecuteTime": {
143153
"end_time": "2024-05-22T20:19:07.047534Z",
@@ -156,7 +166,7 @@
156166
"name": "stdout",
157167
"output_type": "stream",
158168
"text": [
159-
"PersonProfile(name='Alice', ssn='123-45-6789')\n"
169+
"None\n"
160170
]
161171
}
162172
],
@@ -169,7 +179,7 @@
169179
},
170180
{
171181
"cell_type": "code",
172-
"execution_count": 4,
182+
"execution_count": 5,
173183
"metadata": {
174184
"ExecuteTime": {
175185
"end_time": "2024-05-22T20:19:07.816368Z",
@@ -190,7 +200,7 @@
190200
},
191201
{
192202
"cell_type": "code",
193-
"execution_count": 5,
203+
"execution_count": 6,
194204
"metadata": {
195205
"ExecuteTime": {
196206
"end_time": "2024-05-22T20:19:08.084213Z",
@@ -211,7 +221,7 @@
211221
"PersonProfile(name='Alice', ssn='123-45-6789')"
212222
]
213223
},
214-
"execution_count": 5,
224+
"execution_count": 6,
215225
"metadata": {},
216226
"output_type": "execute_result"
217227
}
@@ -237,7 +247,7 @@
237247
},
238248
{
239249
"cell_type": "code",
240-
"execution_count": 6,
250+
"execution_count": 7,
241251
"metadata": {
242252
"ExecuteTime": {
243253
"end_time": "2024-05-22T20:19:28.949669Z",

0 commit comments

Comments
 (0)