I am trying to start a connection to an Azure SQL database. For security reasons I cannot hardcode in the username and password, I need to get it from a dictionary in a config file and put it into the connection URL that way.
When I try to do so and run it in a Jupyter notebook, the {key[value]}
is not being replaced by what it refers to in the config file.
If I use a formatted string, I get a KeyError
. If I do not use a formatted string, it simply prints the {variablename}
literally.