In Part 2 of this series, you added the ability to save changes made through the REST API to a database using SQLAlchemy and learned how to serialize that data for the REST API using Marshmallow. Connecting the REST API to a database so that the application can make changes to existing data and create […]
Category: Flask
Building and Documenting Python REST APIs With Flask and Connexion – Part 2
In Part 1 of this series, you used Flask and Connexion to create a REST API providing CRUD operations to a simple in-memory structure called PEOPLE. That worked to demonstrate how the Connexion module helps you build a nice REST API along with interactive documentation. As some noted in the comments for Part 1, the […]
Building and Documenting Python REST APIs With Flask and Connexion
If you’re writing a web application, then you’re probably thinking about making HTTP calls to your server to get data to populate the dynamic parts of your application. The goal of this article is to show you how to use Python 3, Flask, and Connexion to build useful REST APIs that can include input and […]
User Authentication with Angular 4 and Flask
In this tutorial, we’ll demonstrate how to set up token-based authentication (via JSON Web Tokens) with Angular 4 and Flask. Main Dependencies: Angular v4.2.4 (via Angular CLI v1.3.2) Flask v0.12 Python v3.6.2 Auth Workflow Here’s the full user auth process: Client logs in and the credentials are sent to the server If the credentials are […]
User Authentication With Angular 4 and Flask
In this tutorial, we’ll demonstrate how to set up token-based authentication (via JSON Web Tokens) with Angular 4 and Flask. Main Dependencies: Angular v4.2.4 (via Angular CLI v1.3.2) Flask v0.12 Python v3.6.2 Free Bonus: Click here to get access to a free Flask + Python video tutorial that shows you how to build Flask web […]
Token-Based Authentication with Flask
This tutorial takes a test-first approach to implementing token-based authentication in a Flask app using JSON Web Tokens (JWTs). Objectives By the end of this tutorial, you will be able to… Discuss the benefits of using JWTs versus sessions and cookies for authentication Implement user authentication with JWTs Blacklist user tokens when necessary Write tests […]
Token-Based Authentication With Flask
This tutorial takes a test-first approach to implementing token-based authentication in a Flask app using JSON Web Tokens (JWTs). Updates: 08/04/2017: Refactored route handler for the PyBites Challenge. Objectives By the end of this tutorial, you will be able to… Discuss the benefits of using JWTs versus sessions and cookies for authentication Implement user authentication […]
Miguel Grinberg – Flask at Scale – PyCon 2016
Speaker: Miguel Grinberg Do you think that because Flask is a micro-framework, it must only be good for small, toy-like web applications? Well, not at all! In this tutorial I am going to show you a few patterns and best practices that can take your Flask application to the next level. Slides can be found […]
Flask by Example – Custom Angular Directive with D3
Welcome back. With Angular set up along with a loading spinner and our refactored Angular controller, let’s move on to the final part and create a custom Angular Directive to display a frequency distribution chart with JavaScript and the D3 library. Remember: Here’s what we’re building – A Flask app that calculates word-frequency pairs based […]
Flask by Example – Custom Angular Directive with D3
Welcome back. With Angular set up along with a loading spinner and our refactored Angular controller, let’s move on to the final part and create a custom Angular Directive to display a frequency distribution chart with JavaScript and the D3 library. Remember: Here’s what we’re building – A Flask app that calculates word-frequency pairs based […]
Projects Update: July 2016
About a quarter ago (April), I posted my first regular update on all of the various projects I’m working on. As side projects tend to go, some fall into and out of favor, and occasionally new ones crop up. As I develop on projects, I post regular updates, but it’s helpful to me (and hopefully […]
RaspberryPi + Slack: Our humble contribution to the office’s laziness
If there is one issue that permeates every culture, is not wanting to answer the door. We used to have countless hours of discussion about who would do it and led to a myriad of problems: relationships were broken, projects were lost, accidents happened on the way to answer the door phone! (Well, not really. Nothing of […]
Getting Started with the Slack API using Python and Flask
The slick hosted chat application Slack is all the rage this year. The tool’s adoption isn’t empty hype – it’s incredibly useful for communicating with and learning from fellow developers. For example, software developer communities such as DC Python, Dallas-Forth Worth Devs, and Denver Devs set up their own Slack channels. However, Slack wouldn’t be […]
Growing Pedal Wrencher
In the past I’ve posted a few times about the creation and stagnation of a project of mine, pedal wrencher. In recent months I’ve taken a more structured approach to iteratively improving the app and the plan is to share the lessons learned along the way a bit more freely going forward. This is a […]
Projects Update: April 2016
Over the past year or so I’ve made a conscious effort to put out more public facing work through this site, some side projects and through github. Now, as a few have started to mature and take shape, I wanted to do the first of what will become an occasionally recurring kind of post: projects […]