Summary

OK, things are looking pretty neat! There are only a couple of sections to go, assuming you want to add payments and metrics to your project. The project as it stands is more or less complete.

Hopefully you should be feeling inspired on how to tailor functionality and features using the techniques demonstrated so far.

The example code includes test_profile.py, which checks that the profile needs a login, lists the user’s posts, updates details and resizes the profile image, can’t be used to change another user, and that changing the password needs the current one.

Code

The example code at this point is tagged ch10-user-profile in the example repository. To get it:

git clone https://github.com/codewalkr/fastapi-example-for-you.git
cd fastapi-example-for-you
git checkout ch10-user-profile