Qxf2‘s CI test started failing recently, debugging the error helped us learn about an important aspect of serving Flask application using Uvicorn workers. In this short post I will be going over the details on how we went about identifying the error. Understanding the problem We started with the pytest output summary for the failed API test to validate our […]
How we debugged a Flask session error
Real-time Data Streaming: Neo4j to Flask using Kafka Connect
This post is meant for testers who have to work with Apache Kafka. In this blog, I will show how to build a real-time data streaming pipeline to capture data from Neo4j and stream it to a Flask app by using Kafka. The post has a lot of information so even folks with just superficial knowledge of Apache Kafka can […]
Add Google Sign-In to your Flask app
Recently, I integrated SSO with Google Sign-In into a web application using the oauthlib library. While working on this project, I found plenty of resources on SSO and oauthlib separately, but struggled to find a tutorial that could guide me through the setup of Google Sign-In using oauthlib in a timely manner. Therefore, I’ve written this post to provide a […]
Automation newsletter generation in Mailchimp
Why this post? At Qxf2, we use Mailchimp to send out our weekly newsletter. We have been following pairing activity every week to fill up our newsletter template in Mailchimp and schedule the newsletter. To fill the template, the paired-up team had to look at various resources to come up with articles for various sections, which is tedious so we […]
Flask app with a GraphQL API, JWT Authentication and SQLAlchemy
I wrote (and open sourced) a Flask app with a GraphQL API that was implemented using Graphene. The application is similar to the official Graphene example but includes the following: 1. JWT authentication 2. An example of filtering 3. A minimal amount of data for people to tinker with the app This article is suitable for: a) Testers looking to […]
Skype sender as a web service
I used the fantastic Python module Skpy to setup a ‘Skype sender’ as a web service. I did this work because I wanted to make it as easy to programmatically post to a Skype channel as it is to programmatically post to a Slack channel. If you know your channel id and have an API key, then posting a message […]
Hosting cars-api Flask app using Docker
This blog talks about hosting cars-api Flask app using Docker. Docker is a set of platform as a service to deliver software as packages, called Docker containers. These are the standalone, lightweight, executable packages that could include necessary packages to run an application. Docker Images would turn to containers when they run on the Docker Engine. In the below steps, […]
Bad gateway error for a Flask app deployed using Elastic Beanstalk
This is a super short post that outlines one specific solution for anyone trying to deploy a simple Flask application using AWS Elastic Beanstalk and hitting a bad gateway error. Solution The Internet has some good stuff on helping you if you made a mistake elsewhere, but I did not find this basic check being mentioned anywhere. Make sure that […]
Sending Email through Amazon SES with Flask App
This post is about sending automated Emails with Amazon Simple Email Service(SES). We wanted to explore Amazon SES and hence implemented a sample Flask app to send an automated email. What is Amazon SES? Email is the heartline of any business these days. So sending an automated email,is an important part of business, whether it is the response to a […]
Getting started with Database Schema Migration (Flask-Migrate)
Why this post? This post helps you to quickly setup and get started with Database schema Migration using Flask-Migrate. For example if you already had created a database that contains some tables and now if you add a new column to one of the table and then if you want to revert it to the previous state, it’s difficult to […]