Hiding API keys in python using anaconda environment variables

First you should have anaconda 😉 Then we need to find out where the environment is located echo $CONDA_PREFIX We’ll create create the sub-directories cd $CONDA_PREFIX mkdir -p ./etc/conda/activate.d mkdir -p ./etc/conda/deactivate.d touch ./etc/conda/activate.d/env_vars.sh touch ./etc/conda/deactivate.d/env_vars.sh We’ll have to input the variables in ./etc/conda/activate.d/env_vars.sh For example here we will add a secret key and a […]