If you depending on a external source to return static data you can implement cachetools to cache data from preventing the overhead to make the request everytime you make a request to Flask. This is useful when your upstream data…
Python Flask
A collection of 12 posts
Capture Geo Location Data with Python Flask and PyGeoIP
With the PyGeoIP package you can capture geo location data, which is pretty cool, for example, when you have IOT devices pushing location data to elasticsearch and visualizing the data with Kibana. That will be one example, but the possibilites…
Basic REST API Server with Python Flask
A Basic RESTFul API Service with Python Flask. We will be using the Flask, jsonify and request classes to build our API service. Description of this demonstration: Our API will be able to do the following: Create, Read, Update, Delete…
Populate Environment Variables from Docker Secrets with a Flask Demo App
In this post we will create a basic Python Flask WebApp on Docker Swarm, but we will read our Flask Host, and Flask Port from Environment Variables, which will be populated from Docker Secrets, which we will read in from…
Basic RESTFul API Server with Python Flask
A Basic RESTFul API Service with Python Flask. We will be using the Flask, jsonify and request classes to build our API service. Description of this demonstration: Our API will be able to do the following: Create, Read, Update, Delete…
Building a Search Engine for our Scraped Data on Elasticsearch Part 2
In Part 1, we Scraped this website for data and ingested it into elasticsearch. In this post, we will build the search engine frontend, that we will use to search for blog posts. We will code our application that the…
Python Flask Series - Routing in Flask - P4
This will be part 4 of our Flask Series where we will go into Routing. Flask Routing is essentially mapping a URL eg. example.com/index/test to a certain piece of code. For example having /contact-us displaying a page…
Python Flask Series - Environment Setup P3
This will be part 3 of our Introduction to Python Flask Series. In this section we will be covering our Environment Setup, where I will be showing you how to setup a typical Python Flask Environment using virtualenv. What is…