In this article I will share 3 libraries I often use to isolate my environment variables from production code. Why is this important? Separate config from code As we can read in The Twelve-Factor App / III. Config: Apps sometimes store config as constants in the code. This is a violation of twelve-factor, which requires strict… Continue reading How to handle environment variables in Python
Articles on Modules
Watermarking photos? “I can do that in Python!”
By Anthony Lister on 24 June 2019
My wife is setting up a business from home and wanted to protect photos of her work submitted to social media sites and the web in general. “I can do that using Python!”, I exclaimed, thinking I had seen a tutorial showing how ages ago. Laptop open, I set to work and found my bookmarked tutorial. It was using OpenCV2 and even after ~70 odd days of my #100DaysOfCode journey, I didn’t really understand it well enough to configure it myself if I had to make changes. (OpenCV is on my list of things to do after my #100Days). I remembered reading about Pillow, or PIL as it is sometimes known, and started to read the docs for it. Challenge to myself accepted!
How Encoding Works in Python
By Aviral Verma on 21 June 2018
We all know that the computer cannot store letters or numbers so we need some kind of mapping from these letters/numbers to bit strings (the only thing a computer can understand). One such known mapping is ASCII. If you’re not sure about ASCII and Unicode, let Aviral give you an introduction …