Build Windows executable from Python 3.6 package

I have been working on a project in which I need to deploy to multiple Windows systems. I’ve written the software in Python; normally, I would clone the package repo via git to the target systems, and set up package dependencies by installing via internet, but I have some restrictions: Firewalled systems can’t pull in…

Continue Reading

Python 3 logging setup

Doing a few things here: Showing log output in the console Writing log output to a file Set logger level import logging LOG_FILE = “your_log_file.log” logger = logging.getLogger(__name__) # Set up console handler for logging ch = logging.StreamHandler() # Set up file handler for logging fh = logging.FileHandler(LOG_FILE) # Make the log messages look nice…

Continue Reading