Use Docker to Test and Deploy Python Web Apps

Posted on Tue 29 August 2023 in Docker

Use Docker to containerize and test an existing Python app on your local PC. Then, use Docker to easily deploy the containerized app to a virtual private server (VPS).


Continue reading

Explore relational database schemas with SQLAlchemy

Posted on Wed 16 August 2023 in Databases

One ways to learn about the structure of an existing database is to use the SQLAlchemy inspection module. It provides a simple interface to read database schema information via a Python API.


Continue reading

Create a PostgreSQL database in a Docker container

Posted on Tue 01 August 2023 in Databases

For the purpose of local testing, create a Docker container that runs the Chinook sample database on a PostgreSQL database server.


Continue reading

Create a SQL Server database in a Docker container

Posted on Tue 18 July 2023 in Databases

Create a Microsoft SQL Server on your local PC using Docker and load the AdventureWorks sample database so you can use it for experiments and other learning activities.


Continue reading

SQLAlchemy queries: The minimum you need to know

Posted on Sun 02 July 2023 in Databases

The minimum you need to know about using SQLAlchemy to build powerful SQL queries that you can use with the Pandas read_sql_query() function.


Continue reading

Python, pandas, and databases

Posted on Thu 15 June 2023 in Databases

Use the Pandas data analysis framework to read data from an SQL database. In this post, I show you how to use two methods: you can read entire database tables and process them exclusively in Pandas, or you can use SQL queries to pre-process only selected database data to reduce the memory used by Pandas when analyzing the data.


Continue reading

Use Python to read data from a database

Posted on Fri 02 June 2023 in Databases

Leverage Python and the pyodbc library to efficiently read data from an SQL database


Continue reading

Explore SQL database schemas with Python

Posted on Thu 18 May 2023 in Databases

Write Python programs that model a SQL database schema and read data from it, using the pyodbc driver


Continue reading

Create a sample database on Azure cloud

Posted on Wed 03 May 2023 in Databases

For the purpose of practicing data analytics programming, create your own personal database server on Microsoft's Azure cloud, populate it with sample data, and run the server on Azure's free service tier


Continue reading

Use environment variables to protect your secrets

Posted on Fri 07 April 2023 in Python

How Python programmers can set and use environment variables to improve their programs' flexibility and security


Continue reading

Learning to use Python Classes by Creating a Game

Posted on Wed 08 February 2023 in Python

Use the Pyxel game framework to create a simple retro-style game that demonstrates object-oriented programming and Python classes.


Continue reading

Set up a Custom Domain for your Static Web Site on Cloudflare Pages

Posted on Sat 12 November 2022 in Blogging

Configure Cloudflare Pages to use a custom domain name, instead of the domain name pages.dev when it serves your static web site.


Continue reading