REST APIs How to deploy Flask and MongoDB to Render In this post we show you how to deploy your Flask and MongoDB app for free to Render.com and MongoDB Atlas.
Web Development How to customise pages and emails of Flask-Security-Too When you add login, signup, or other features with Flask-Security-Too, you get some unstyled plain HTML pages. Learn how to customise and style them in this article.
Flask User email confirmations with Flask-Security-Too Requiring user confirmation via email is traditionally not a simple thing to do. Flask extension Flask-Security-Too makes it much simpler.
Flask Query string arguments in REST APIs with Flask Query string arguments allow clients to send us extra data in the URL. Learn how to access query string arguments in a plain Flask route and in a Flask-Smorest API.
Flask User authentication in Flask with Flask-Security-Too Learn how to easily add user login and signup to any Flask app using the popular extension Flask-Security-Too!
REST APIs New Free Course: FastAPI for Beginners We've finally published our latest course: FastAPI for Beginners. It's a free course to help you get started with FastAPI.
Learn Python Programming How to use pyenv to manage Python versions If you need to install multiple Python versions, going the ol' installer route isn't the best idea. In this article I show you how I manage multiple Python versions, using pyenv.
REST APIs Create JWTs using Python for Flask or FastAPI Learn how to create JWTs for authentication using either Flask or pure Python (for use in FastAPI and other frameworks).
Learn Python Programming How to run tasks periodically in Render.com Have you ever had to run some code every hour, or every day, or every week? In this article I'll show you how to set it up, to run in the cloud, very easily!
Learn Python Programming How to upload files to Backblaze B2 using Python If your web app handles user uploads, you need a place to store the files. This article shows you how to set up Backblaze B2, a cloud storage service, to store any uploaded files using Python.
REST APIs Exploring Python Task Queues: Celery and rq An overview of how task queues work and how to set up an rq task queue and background worker using Redis. With examples.
Flask How to handle file uploads with Flask Uploading files is tricky! In this post we show you two ways: a simple and a less simple, depending on your needs.
REST APIs Build your first REST API with Flask and PostgreSQL Learn to build a REST API to collect, aggregate, and serve temperature data using Flask and PostgreSQL!
Learn Python Programming The @property decorator in Python The property decorator allows us to define methods that act as attributes in Python classes. This simplifies using the objects, and extends what we can do when getting and setting attribute values.
Learn Python Programming How to simplify long if statements in Python When Python if statements grow, they become difficult to work with. Learn how to simplify them using match-case and dictionaries in this post!
REST APIs How to Add API Key Authentication to a Flask app Learn how to add API key authentication to your Flask apps using Flask-RESTful and SQLAlchemy.
Learn Python Programming Changes to async event loops in Python 3.10 Python 3.10 deprecated a frequently-used function in the asyncio library. In this post we explain what the new best practice is and how to change your code to use it.
Learn Python Programming Using "match...case" in Python 3.10 Learn about the new "match...case" syntax in Python 3.10, and how you can use it with a bunch of examples!
Flask Build a blog platform with Flask: writing and showing posts Part 1 of this series to guide you through building a blog using Flask and Python! In this post you'll learn how to start your Flask app, set up a database, and create posts.
Learn Python Programming Working with Python virtual environments: the complete guide Working with dependencies is a fact of life. With this post, learn about dependency management in Python using virtual environments!
30 Days of Python Day 30 Project: Snake For today's project we're building the Snake game using pygame! Here we've got the project brief for you, as well as our solution. Enjoy!
30 Days of Python Day 30: Project Preparation (pygame basics) In this post we guide you through the fundamentals of pygame, a Python library used to create games. You'll need this knowledge in order to tackle the final project!
30 Days of Python Day 30: Graduation Today is the final day in the 30 Days Of Python series! For today, we're covering what sort of things you can do next with Python!
30 Days of Python Day 29: Exercise Solutions Check out the exercise solutions for Day 29: Decorators. Remember to try them on your own first, before reading through this post!
30 Days of Python Day 29: Decorators Today we learn about decorators: functions that allow us to extend other functions and make them do more stuff!