PYTHON FASTAPIAdding API Key Authorization

May 4, 2021

A common environment variable used in server-side programming is API keys. These keys can authorize access to the server endpoints or are required for calling third-party APIs. Furthermore, API keys often are secret. So, it's best practice not to hardcode the value or

PYTHON FASTAPIMiddleware and Security in FastAPI

April 4, 2021

Sometimes the biggest obstacle when building a new app or project is security. It seems that each technology has its own special set of concerns. How can we be sure that we're protecting our resources? I was using NodeJS, and setting up an express server the first time I used middleware for a server

Auto ARIMA Time-Series Analysis: U.S COVID-19 Mortalities, and US Equities

April 4, 2021

In a prior analysis, using an ordinary least squares regression, I created a model that explained 55.7% of the variation in Boeing (BA) common stock pricing using a 7-day rolling average for U.S COVID-19 mortalities. Additionally, I found this statistic had a correlation

PYTHON FASTAPIView and Modify OpenAPI Documentation in FastAPI

March 2, 2021

Previously, when I used the Try It Out! button, the specification sent our development server a request. We can add other servers to test on in our documentation by passing in an array to the server's argument.


March 3, 2021

This article in the series will cover setting up a basic FastAPI project. The best tutorial for learning FastAPI is on their website. However, for the sake of continuity, I'll detail some steps here:

Creating Dummy Variables with Pandas

March 5, 2021

Using dummy variables when preparing data with Python is a common transformation performed on categorical data. In this article, I'll quickly describe how easy this is with Python and the pandas library.


March 4, 2021

This article does not deal with Python or FastAPI, per se. Instead, we'll talk about why we wanted to create an OpenAPI spec in the first place. With the spec, we can set up mock APIs and documentation. Below is an example of how I was able to integrate the API into my backend CMS and frontend React

PYTHON FASTAPIPython FastAPI: Introduction

March 2, 2021

This article is the beginning of a series on how to use FastAPI to build an API with Python. Additionally, I'll attach some tools that help to design, develop, and manage the API. The API will use the OpenAPI specification to help with design, documentation, and testing.

BUILDING A PYTHON PACKAGEBuilding a Python Package: First Release (6)

February 6, 2021

I wanted to publish a first release for the package but ran into problems after installing and importing the package. After running through a few more test alpha releases I was able to make a couple of adjustments and eventually install and use the package as intended. Additionally, I forgot