Flask

Testing a PyTorch machine learning model with pytest and CircleCI

In this tutorial, you will learn how to use PyTorch's torchvision library to build an image classification model and expose the functionality as a REST API using Flask.

How to Serialize Flask SQLAlchemy to JSON

Recently I was involved in developing a PPE response network built by The Luminosity Lab at Arizona State University. Its backend was built using Flask. This was my first time working on a Flask application and I was surprised that it is not trivial to elegantly serialize the database model classes to JSON.

How to add HTTP Cache-Control Headers in Flask

Using caching can vastly improve the performance of your applications. There are different types of caching options available while developing Web applications but HTTP caching is one of the simplest ways to improve the performance of your application.