pymsteams is an open source library to securely send content into a Teams Channel using webhooks. It's versatile, and can be combined with other libraries like tabulate to send dataframes as a connector card.
import pymsteams
def get_current_and_previous_values():
# write the code to fetch the two values from your upstream process