Skip to content

Commit

Permalink
add gcp profiler
Browse files Browse the repository at this point in the history
  • Loading branch information
jrafaelrn committed Apr 23, 2024
1 parent 6cb07c4 commit e4cb962
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 4 deletions.
3 changes: 2 additions & 1 deletion src/functions/bd_transaction/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
gspread
pandas
requests
requests
google-cloud-profiler
12 changes: 9 additions & 3 deletions src/functions/bd_update_banks/bank_sicredi.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
import os, extract, bd, time, json, re
from datetime import datetime
import pandas as pd
import bd
import extract
import json
import logging
import os
import pandas as pd
import re
import time

from datetime import datetime

logging.basicConfig(level=logging.DEBUG)
logger = logging.getLogger(__name__)
Expand Down
3 changes: 3 additions & 0 deletions src/functions/bd_update_banks/main.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import json, gspread, io, os, re, bank_sicredi, base64, bank_pagbank
from httplib2 import Credentials
from datetime import datetime
import googlecloudprofiler
import pandas as pd

from googleapiclient.discovery import build
Expand All @@ -12,6 +13,8 @@
files_to_import = []
account_name = None

googlecloudprofiler.start(service='bd-update-banks', service_version='1.0.1', verbose=3)

#################################
# GOOGLE DRIVE API #
#################################
Expand Down
1 change: 1 addition & 0 deletions src/functions/bd_update_banks/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@ openpyxl
pandas
google-api-python-client
google-auth-httplib2
google-cloud-profiler
oauth2client
xlrd

0 comments on commit e4cb962

Please sign in to comment.