in credit-card-fraud-detection/neptune_ml_utils.py [0:0]
def get_export_service_host():
with open(f'{HOME_DIRECTORY}/.bashrc') as f:
data = f.readlines()
for d in data:
if str.startswith(d, 'export NEPTUNE_EXPORT_API_URI'):
parts = d.split('=')
if len(parts) == 2:
path = urlparse(parts[1].rstrip())
return path.hostname + "/v1"
logging.error(
"Unable to determine the Neptune Export Service Endpoint. You will need to enter this or assign it manually.")
return None