The goal of this repo is to have a common utility library that will be shared between DE and DS teams to avoid duplication and maintenance efforts
This directory should contain utility functions so that we can avoid repeating ourselves. You can install this package in your Docker image via:
RUN pip install git+https://github.com/Flaconi/bi_utils.git
Then in your Python script, you can import it:
from bi_utils import utils
# usage
logger = utils.set_logging()
utils.deployment(prod=True, dev=True)
deployment()
function - to make sure the code is the same in both envs - it simply not runs in DEV or PROD if this is not desiredset_logging()
- to avoid copy-pasting logger setupsend_slack_alert()
- generic function to send Slack message- helper functions ex.
establish_boto3_client()
to establish Boto3 client for any AWS service