Converting Flask-SQLAlchemy to JSON With Flask-Marshmallow

It's very common to return JSON representations of rows in yoru database. In this video, I show you how to use Flask-Marshmallow to return JSON versions of your Flask-SQLAlchemy models. Get the code here:

READ MORE

Validation in Python's Marshmallow Library

In this video I show you how to perform validation on Python objects using Marshmallow. Get the code here:

READ MORE

Intro to Marshmallow: A Python Object Serialization Library

In this video, I introduce Marshmallow, a Python object serialization library. I show you what you is used for and how to use it. Get the code here:

READ MORE

Python Requests Tutorial - Bitcoin Price API

In this video I talk about the basics of using Python requests by showing you how to call the Coinbase Bitcoin Price Index API. You can see the API docs here: https://www.coindesk.com/api/ Download the code here: https://s3.us-east-2.amazonaws.com/prettyprinted/b...

READ MORE

Using Init App With Flask Extensions (1 of 2)

In this video I show you how to use the init app method when using Flask extensions. Alone it doesn't mean much, but with the app factory pattern, it can be powerful. Get the code here: https://s3.us-east-2.amazonaws.com/prettyprinted/u...

READ MORE

Understanding the jQuery Click Event

The click event in jQuery is one of the most used events you could listen for. In this video, I show you the basics of the click event. Get the code here: https://s3.us-east-2.amazonaws.com/prettyprinted/j...

READ MORE

The jQuery Hide, Show, and Toggle Functions

The jQuery functions hide, show, and toggle are very useful in any app that uses jQuery. In this video, I show you how they work and how you can use the duration and callback function for each. Get the code here:

READ MORE

Understanding the Lazy Parameter in Flask-SQLAlchemy Relationships

In this video, I will help you understand how the lazy parameter in Flask-SQLAlchemy relationships works and the four options you can use for it. The four options are: select, joined, subquery, and dynamic. Download the code here: https://s3.us-east-2.amazonaws.com/prettyprinted/s...

READ MORE

Integrating Flask-Dance With Flask-Login and Flask-SQLAlchemy (Part 2)

In this video, I show you how to combine Flask-Dance, Flask-Login, and Flask-SQLAlchemy so you can use OAuth in your Flask app. For this example, I show you how to use Twitter OAuth, but it applies to other providers as well. Get the code here:...

READ MORE

Connect to Twitter and Github With OAuth in Flask Using Flask-Dance (Part 1)

You can use OAuth as a way to authenticate users in your Flask app, among other videos. In this video, I'll show you how to connect to Twitter and Github using Flask-Dance to use OAuth to get the login information for the users. This will serve as a basis of building a login system around the...

READ MORE