|
|
|
|
@ -2,7 +2,7 @@
|
|
|
|
|
"cells": [ |
|
|
|
|
{ |
|
|
|
|
"cell_type": "code", |
|
|
|
|
"execution_count": 10, |
|
|
|
|
"execution_count": 11, |
|
|
|
|
"metadata": {}, |
|
|
|
|
"outputs": [], |
|
|
|
|
"source": [ |
|
|
|
|
@ -11,7 +11,7 @@
|
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
"cell_type": "code", |
|
|
|
|
"execution_count": 11, |
|
|
|
|
"execution_count": 12, |
|
|
|
|
"metadata": {}, |
|
|
|
|
"outputs": [], |
|
|
|
|
"source": [ |
|
|
|
|
@ -20,10 +20,11 @@
|
|
|
|
|
" import csv\n", |
|
|
|
|
" import hashlib\n", |
|
|
|
|
" import re\n", |
|
|
|
|
" import builtins\n", |
|
|
|
|
" from datetime import date, datetime\n", |
|
|
|
|
" from decimal import Decimal\n", |
|
|
|
|
"\n", |
|
|
|
|
" with open(file_name or \"./documents/extrato.csv\", newline=\"\", encoding=\"latin\") as csvfile:\n", |
|
|
|
|
" with builtins.open(file_name or \"./documents/extrato.csv\", newline=\"\", encoding=\"latin\") as csvfile:\n", |
|
|
|
|
" spamreader = csv.reader(csvfile)\n", |
|
|
|
|
" csv_list = list(spamreader)\n", |
|
|
|
|
"\n", |
|
|
|
|
@ -83,17 +84,17 @@
|
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
"cell_type": "code", |
|
|
|
|
"execution_count": 12, |
|
|
|
|
"execution_count": 13, |
|
|
|
|
"metadata": {}, |
|
|
|
|
"outputs": [], |
|
|
|
|
"source": [ |
|
|
|
|
"# Test\n", |
|
|
|
|
"# build_account_input(\"./documents/extrato-30d.csv\")" |
|
|
|
|
"# build_account_input(\"\")" |
|
|
|
|
] |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
"cell_type": "code", |
|
|
|
|
"execution_count": 13, |
|
|
|
|
"execution_count": 14, |
|
|
|
|
"metadata": {}, |
|
|
|
|
"outputs": [], |
|
|
|
|
"source": [ |
|
|
|
|
@ -120,17 +121,17 @@
|
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
"cell_type": "code", |
|
|
|
|
"execution_count": 14, |
|
|
|
|
"execution_count": 15, |
|
|
|
|
"metadata": {}, |
|
|
|
|
"outputs": [], |
|
|
|
|
"source": [ |
|
|
|
|
"# Test\n", |
|
|
|
|
"# db_insert(build_account_input(\"./documents/extrato-30d.csv\"))" |
|
|
|
|
"# db_insert(build_account_input(\"\"))" |
|
|
|
|
] |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
"cell_type": "code", |
|
|
|
|
"execution_count": 15, |
|
|
|
|
"execution_count": 16, |
|
|
|
|
"metadata": {}, |
|
|
|
|
"outputs": [], |
|
|
|
|
"source": [ |
|
|
|
|
@ -150,7 +151,7 @@
|
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
"cell_type": "code", |
|
|
|
|
"execution_count": 16, |
|
|
|
|
"execution_count": 17, |
|
|
|
|
"metadata": {}, |
|
|
|
|
"outputs": [ |
|
|
|
|
{ |
|
|
|
|
@ -158,43 +159,64 @@
|
|
|
|
|
"output_type": "stream", |
|
|
|
|
"text": [ |
|
|
|
|
"DONE\n", |
|
|
|
|
"CONNECTED! <mysql.connector.connection_cext.CMySQLConnection object at 0x000001A7BC1ADDF0>\n", |
|
|
|
|
"CONNECTED! <mysql.connector.connection_cext.CMySQLConnection object at 0x0000026C918A5BE0>\n", |
|
|
|
|
"DONE!\n", |
|
|
|
|
"DONE\n", |
|
|
|
|
"CONNECTED! <mysql.connector.connection_cext.CMySQLConnection object at 0x0000026C918834D0>\n", |
|
|
|
|
"DONE!\n", |
|
|
|
|
"DONE\n", |
|
|
|
|
"CONNECTED! <mysql.connector.connection_cext.CMySQLConnection object at 0x0000026C918834D0>\n", |
|
|
|
|
"DONE!\n", |
|
|
|
|
"DONE\n", |
|
|
|
|
"CONNECTED! <mysql.connector.connection_cext.CMySQLConnection object at 0x0000026C91883610>\n", |
|
|
|
|
"DONE!\n", |
|
|
|
|
"DONE\n", |
|
|
|
|
"CONNECTED! <mysql.connector.connection_cext.CMySQLConnection object at 0x0000026C918834D0>\n", |
|
|
|
|
"DONE!\n", |
|
|
|
|
"DONE\n", |
|
|
|
|
"CONNECTED! <mysql.connector.connection_cext.CMySQLConnection object at 0x0000026C91883610>\n", |
|
|
|
|
"DONE!\n", |
|
|
|
|
"DONE\n", |
|
|
|
|
"CONNECTED! <mysql.connector.connection_cext.CMySQLConnection object at 0x0000026C91883610>\n", |
|
|
|
|
"DONE!\n", |
|
|
|
|
"DONE\n", |
|
|
|
|
"CONNECTED! <mysql.connector.connection_cext.CMySQLConnection object at 0x0000026C91883610>\n", |
|
|
|
|
"DONE!\n", |
|
|
|
|
"DONE\n", |
|
|
|
|
"CONNECTED! <mysql.connector.connection_cext.CMySQLConnection object at 0x000001A7BC1ADDF0>\n", |
|
|
|
|
"CONNECTED! <mysql.connector.connection_cext.CMySQLConnection object at 0x0000026C918834D0>\n", |
|
|
|
|
"DONE!\n", |
|
|
|
|
"DONE\n", |
|
|
|
|
"CONNECTED! <mysql.connector.connection_cext.CMySQLConnection object at 0x000001A7BC1D61E0>\n", |
|
|
|
|
"CONNECTED! <mysql.connector.connection_cext.CMySQLConnection object at 0x0000026C918834D0>\n", |
|
|
|
|
"DONE!\n", |
|
|
|
|
"DONE\n", |
|
|
|
|
"CONNECTED! <mysql.connector.connection_cext.CMySQLConnection object at 0x000001A7BC1D77D0>\n", |
|
|
|
|
"CONNECTED! <mysql.connector.connection_cext.CMySQLConnection object at 0x0000026C918834D0>\n", |
|
|
|
|
"DONE!\n", |
|
|
|
|
"DONE\n", |
|
|
|
|
"CONNECTED! <mysql.connector.connection_cext.CMySQLConnection object at 0x000001A7BAD26C00>\n", |
|
|
|
|
"CONNECTED! <mysql.connector.connection_cext.CMySQLConnection object at 0x0000026C918834D0>\n", |
|
|
|
|
"DONE!\n", |
|
|
|
|
"DONE\n", |
|
|
|
|
"CONNECTED! <mysql.connector.connection_cext.CMySQLConnection object at 0x000001A7BC1D5820>\n", |
|
|
|
|
"CONNECTED! <mysql.connector.connection_cext.CMySQLConnection object at 0x0000026C918834D0>\n", |
|
|
|
|
"DONE!\n", |
|
|
|
|
"DONE\n", |
|
|
|
|
"CONNECTED! <mysql.connector.connection_cext.CMySQLConnection object at 0x000001A7BC1D5820>\n", |
|
|
|
|
"CONNECTED! <mysql.connector.connection_cext.CMySQLConnection object at 0x0000026C918834D0>\n", |
|
|
|
|
"DONE!\n", |
|
|
|
|
"DONE\n", |
|
|
|
|
"CONNECTED! <mysql.connector.connection_cext.CMySQLConnection object at 0x000001A7BC1708F0>\n", |
|
|
|
|
"CONNECTED! <mysql.connector.connection_cext.CMySQLConnection object at 0x0000026C918834D0>\n", |
|
|
|
|
"DONE!\n", |
|
|
|
|
"DONE\n", |
|
|
|
|
"CONNECTED! <mysql.connector.connection_cext.CMySQLConnection object at 0x000001A7BC1D5820>\n", |
|
|
|
|
"CONNECTED! <mysql.connector.connection_cext.CMySQLConnection object at 0x0000026C91883610>\n", |
|
|
|
|
"DONE!\n", |
|
|
|
|
"DONE\n", |
|
|
|
|
"CONNECTED! <mysql.connector.connection_cext.CMySQLConnection object at 0x000001A7BC137B00>\n", |
|
|
|
|
"CONNECTED! <mysql.connector.connection_cext.CMySQLConnection object at 0x0000026C91883610>\n", |
|
|
|
|
"DONE!\n", |
|
|
|
|
"DONE\n", |
|
|
|
|
"CONNECTED! <mysql.connector.connection_cext.CMySQLConnection object at 0x000001A7BC208200>\n", |
|
|
|
|
"CONNECTED! <mysql.connector.connection_cext.CMySQLConnection object at 0x0000026C91883610>\n", |
|
|
|
|
"DONE!\n", |
|
|
|
|
"DONE\n", |
|
|
|
|
"CONNECTED! <mysql.connector.connection_cext.CMySQLConnection object at 0x000001A7BC23FFB0>\n", |
|
|
|
|
"CONNECTED! <mysql.connector.connection_cext.CMySQLConnection object at 0x0000026C91883250>\n", |
|
|
|
|
"DONE!\n", |
|
|
|
|
"DONE\n", |
|
|
|
|
"CONNECTED! <mysql.connector.connection_cext.CMySQLConnection object at 0x000001A7BC1D5880>\n", |
|
|
|
|
"CONNECTED! <mysql.connector.connection_cext.CMySQLConnection object at 0x0000026C91883250>\n", |
|
|
|
|
"DONE!\n", |
|
|
|
|
"EXECUTOR COMPLETED.\n" |
|
|
|
|
] |
|
|
|
|
@ -207,7 +229,7 @@
|
|
|
|
|
], |
|
|
|
|
"metadata": { |
|
|
|
|
"kernelspec": { |
|
|
|
|
"display_name": "base", |
|
|
|
|
"display_name": "Python 3", |
|
|
|
|
"language": "python", |
|
|
|
|
"name": "python3" |
|
|
|
|
}, |
|
|
|
|
@ -221,7 +243,7 @@
|
|
|
|
|
"name": "python", |
|
|
|
|
"nbconvert_exporter": "python", |
|
|
|
|
"pygments_lexer": "ipython3", |
|
|
|
|
"version": "3.12.7" |
|
|
|
|
"version": "3.14.0" |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
"nbformat": 4, |
|
|
|
|
|