Skip to content

Commit

Permalink
Merge pull request #2 from mind-network/dev
Browse files Browse the repository at this point in the history
Fix format of notebook
  • Loading branch information
dennis-mind authored Jul 17, 2023
2 parents 8216a75 + b7f0fd4 commit 4465ace
Showing 1 changed file with 27 additions and 23 deletions.
50 changes: 27 additions & 23 deletions examples/use_case_arweave.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"# you can also check this new downloaded table in https://scan.mindnetwork.xyz/account/myData"
"you can also check this new downloaded table in https://scan.mindnetwork.xyz/account/myData"
]
},
{
Expand Down Expand Up @@ -385,14 +385,18 @@
"output_type": "stream",
"text": [
"test_table_encrypted.csv has been saved to Arweave.\n",
"The Arweave ID is: NNgcwmyBsB0F6sJGbEBcNxor7-i_5PF5LxcC2yOmFkU\n",
"You can check on Arweave: https://viewblock.io/arweave/tx/NNgcwmyBsB0F6sJGbEBcNxor7-i_5PF5LxcC2yOmFkU\n",
"And the content on Arweave: https://arseed.web3infra.dev/NNgcwmyBsB0F6sJGbEBcNxor7-i_5PF5LxcC2yOmFkU\n",
"\n",
"The Arweave ID is: OXVF56-SsxPNZ9_Zy5BTnjWPaMoWdq_OpwCiOg811-U \n",
"\n",
"You can check on Arweave: https://viewblock.io/arweave/tx/OXVF56-SsxPNZ9_Zy5BTnjWPaMoWdq_OpwCiOg811-U\n",
"\n",
"And the content on Arweave: https://arseed.web3infra.dev/OXVF56-SsxPNZ9_Zy5BTnjWPaMoWdq_OpwCiOg811-U\n",
"\n",
"The content is:\n",
"uid,wallet_address,register_date\n",
"123,\\xc5c23a94d68b6159e0db4abfc83caa14012fdd2349e22a50b7800fa8a9da7c0dadcffc5a91ecc1b264922678a1aff26ce31a33b59ee0ca5236e5ddbae7aa15471b,\\x62caa32d48c0d9e1c9411010de2eee60000ddbae901808bddbac1c54abb468d7ba\n",
"124,\\x09b0a3fc52a0c0932e61b1c8c56b0bf7ee2af9e88e32b0663af2e03f50cbf65aee203a3df8ea5b15911cc629653ee70239e0c7f64fb4ebc7fc34f239ecc13736e5,\\xaa53d8fad9156a1f54fffd7c329b871484962b59777bddbe970d5bfee00b344ed3\n",
"125,\\x461ec6dc1cdf0edfaa1f44bfeeebd2bea56600b1d0f406dc5d5b781894a9511ef2108d1cf7cbb1117ca6027715beb60076a03920308855208f0d235c70d751cf74,\\xa3bc165c1a5e6938b3e0596b87822ddbcc4c671292313c08963a05bfd1f6579147\n",
"123,\\x9ffdb6fa20d5e41952032a372d1b749750bb2c2b76de5fdd3c56fe377fe8e18e4b1958c1fbe109e2e712779e015955e9d3abf06843b2634bed682df38e992d8c34,\\x0a20c65664374908163db53cfedfea5613adc2164872e4590659f8f9da3f5d108c\n",
"124,\\xd60d24a0753996459f06cc86e23e1041049e7214af09e8684863760567026a0191241d018e81a9423ee47c5244a256784d09ea9429ac65334b98afa964e388f8a8,\\x743ea93bff0c3797e6b336e9e10c215344fcf0289d2d2b19eb7608a90b56417e22\n",
"125,\\x660a17798b68370adf43812181df6bc5ebaa969c8d9439a322e37dc111f9f2018425d41ca83cf2251a57af2f58adcee68dbfdaf5e5307807f112cef9a3014a858a,\\x1c3bed52fd032aea9b1990ed80007bce85167ec7fb2d50214dc7b0d13343b1a56e\n",
"\n"
]
}
Expand All @@ -401,13 +405,13 @@
"# make sure you have arweave_wallet.json \n",
"result = dataPack2.saveToArweave('test_table_encrypted.csv', 'AR', './arweave_wallet.json')\n",
"assert result, result.message\n",
"print(\"test_table_encrypted.csv has been saved to Arweave.\")\n",
"print(\"test_table_encrypted.csv has been saved to Arweave.\\n\")\n",
"itemID = result.data\n",
"print(\"The Arweave ID is:\", itemID)\n",
"print(\"The Arweave ID is:\", itemID, '\\n')\n",
"arweave_explore_url = \"https://viewblock.io/arweave/tx/%s\"%(itemID)\n",
"arweave_file_url = \"https://arseed.web3infra.dev/%s\"%(itemID)\n",
"print(\"You can check on Arweave:\", arweave_explore_url)\n",
"print(\"And the content on Arweave:\", arweave_file_url)\n",
"print(f\"You can check on Arweave: {arweave_explore_url}\\n\")\n",
"print(f\"And the content on Arweave: {arweave_file_url}\\n\")\n",
"import requests\n",
"content = requests.get(arweave_file_url).text\n",
"print(\"The content is:\")\n",
Expand Down Expand Up @@ -555,35 +559,35 @@
" <tr>\n",
" <th>0</th>\n",
" <td>123</td>\n",
" <td>\\xbccbf2b5f37fa48a28cb629cdef5ce3a55485aaa1135...</td>\n",
" <td>\\x92c68f85c32aaab96f93775287b998a263dd9ae413d9...</td>\n",
" <td>\\xf172db5115f65c2398b861ac2d0464d028c74858314a...</td>\n",
" <td>\\x7b3c1b5b94124f53257126d13a2d6e8db6545979c652...</td>\n",
" </tr>\n",
" <tr>\n",
" <th>1</th>\n",
" <td>124</td>\n",
" <td>\\x1772d0b504ceff425734fb9c0453466b2b0475de66d6...</td>\n",
" <td>\\x591346e00096feb0823f3a5ce45d39fc2c0177a370ef...</td>\n",
" <td>\\x1990e23c35acfa7257b91a92e9c10bc985727f5bef5f...</td>\n",
" <td>\\x344cdab6ad9ba1b781c013cc849ba43c5d78f8d36df0...</td>\n",
" </tr>\n",
" <tr>\n",
" <th>2</th>\n",
" <td>125</td>\n",
" <td>\\xc1d0276b43e14c9e912d0def9e7fbe4b2843650bc449...</td>\n",
" <td>\\xe4090c2c346ab00d0923e8897a7f4b61a076112e7a3e...</td>\n",
" <td>\\xd2ba460636b46db5091d73db1700991c165622e972c5...</td>\n",
" <td>\\x1ef347e400cb6f3a6d763f57e93c772d0ae8c3704b77...</td>\n",
" </tr>\n",
" </tbody>\n",
"</table>\n",
"</div>"
],
"text/plain": [
" uid wallet_address \\\n",
"0 123 \\xbccbf2b5f37fa48a28cb629cdef5ce3a55485aaa1135... \n",
"1 124 \\x1772d0b504ceff425734fb9c0453466b2b0475de66d6... \n",
"2 125 \\xc1d0276b43e14c9e912d0def9e7fbe4b2843650bc449... \n",
"0 123 \\xf172db5115f65c2398b861ac2d0464d028c74858314a... \n",
"1 124 \\x1990e23c35acfa7257b91a92e9c10bc985727f5bef5f... \n",
"2 125 \\xd2ba460636b46db5091d73db1700991c165622e972c5... \n",
"\n",
" register_date \n",
"0 \\x92c68f85c32aaab96f93775287b998a263dd9ae413d9... \n",
"1 \\x591346e00096feb0823f3a5ce45d39fc2c0177a370ef... \n",
"2 \\xe4090c2c346ab00d0923e8897a7f4b61a076112e7a3e... "
"0 \\x7b3c1b5b94124f53257126d13a2d6e8db6545979c652... \n",
"1 \\x344cdab6ad9ba1b781c013cc849ba43c5d78f8d36df0... \n",
"2 \\x1ef347e400cb6f3a6d763f57e93c772d0ae8c3704b77... "
]
},
"execution_count": 10,
Expand Down

0 comments on commit 4465ace

Please sign in to comment.