In this article we will be taking the code from the previous article on Bottle and changing it such that it uses SQLAlchemy instead of just normal SQLite code. This will require you to download the bottle-sqlalchemy package from PyPI. You can also install it using "pip install bottle-sqlalchemy", assuming you have pip installed. You […]
Python has lots of web frameworks. Bottle is one of them and is considered a WSGI Framework. It's also sometimes called a "micro-framework", probably because Bottle consists of just one Python file and has no dependencies besides Python itself. I've been trying to learn it and I was using the official Todo-list tutorial on their […]
Have you ever wondered how to embed custom fonts in Reportlab? Or maybe you just want to switch fonts or change the font's color. Well in this tutorial, we'll take a look at all of these questions. You'll need to go out and download a copy of Reportlab as it isn't a part of the […]
Today I decided to figure out how to make Python log to a file and the console simultaneously. Most of the time, I just want to log to a file, but occasionally I want to be able to see stuff on the console too to help with debugging. I found this ancient example in the […]
Yesterday, I stumbled on to Dropbox's Python API. I ended up using their tutorial to design a simple class for accessing my Dropbox. You'll need to download their dropbox module to follow along or use "pip install dropbox" to install it. You will also need to sign up for a key and secret. Once you […]
My wife teaches 3rd grade math and she recently learned about the process of obtaining the digital root of numbers. The digital root is a single digit number found by summing the individual digits. So for 15, you would add 1+5 to get 6. Thus 6 is the digital root of 15. The trainer that […]