For a project, I wanted the current outside temperature for my local area. For different reasons, I decided on an external choice but mainly because it would be more accurate then dangling a temperature sensor out of the window! I will walk you through the steps of building your own API calls in Python3. The… Continue reading Python3: Getting Weather Conditions Through API
Tag: python3
random_from_list.py iterator
Sometimes, being a bit random is necessary. I built an iterator in Python which takes a list as it’s sole argument and returns a random element each time. The iterator stops after all elements has been picked once. You can find the project and usage guide here on GitHub: random_from_list.py
Compile and install Python’s MOD_WSGI for Apache2 in Ubuntu 18.04
Having installed mod_wsgi a couple of times on different machines, I decided to note down the steps I took and put together a guide. There are also some solutions to some issues that you may encounter, which left me clueless for a while. If you are looking for a guide to deploying a Flask/Django project,… Continue reading Compile and install Python’s MOD_WSGI for Apache2 in Ubuntu 18.04
SQLite3 and Python3 : Generating Statements
I’ve been working on a project that interacts with a database, and happened upon a some interesting problems. The data I want to input into the database is initially stored in a dict variable. If you weren’t already aware, the order of a Python dict changes, even if you use a blueprint or template. This… Continue reading SQLite3 and Python3 : Generating Statements
First look at building a configuration file parser – Python3
Intro and context The project that I’m working on is actually based on a previous (now defunct) project that had to be re-written. I was in the middle of creating a scrape tool to pull data from a website. The original (I’ll refer to as MK1) worked really well, until the site was completely re-designed.… Continue reading First look at building a configuration file parser – Python3