Stop Hardcoding Sensitive Data in Your Python Applications

Keep your settings and credentials private with .env files

Ahmed Besbes
Towards Data Science
5 min readSep 25, 2021

--

Image made by the author

As a data scientist, I daily use Python to build applications that rely on credentials and sensitive settings.

Here are some examples of those, off the top of my head:

  • API keys to access third-party services

--

--

Medium Top Writer (+2M views) | I write about python and productionizing ML code into scalable apps. Exclusive content here: https://thetechbuffet.substack.com/