Python REST APIs With Flask, Connexion, and SQLAlchemy – Part 1
Build a Flask REST API with Connexion and Swagger UI in this three-part series. Part one lays the foundation of your application.
Curated development tutorials from top sources. Filter by language.
Build a Flask REST API with Connexion and Swagger UI in this three-part series. Part one lays the foundation of your application.
Learn how to sort a Python dictionary by value or key, handle nested attributes, and compare techniques to keep your code fast and readable.
Explore Python modules and packages, the two mechanisms that make modular programming possible, and learn how imports find your code.
Extend your Flask REST API with a SQLAlchemy one-to-many relationship that adds notes to people, and serve them through new API endpoints.
Build a Flask REST API backed by a SQLite database. In part two of this series, you'll use SQLAlchemy and Marshmallow to persist and serialize data.
Revisit Python's pathlib module for handling file and folder paths consistently across operating systems. Write modern, object-oriented code.
Test your understanding of building a URL shortener with FastAPI, from endpoints and pydantic schemas to SQLAlchemy models and redirects.
Learn how to use Python threading to run tasks concurrently, synchronize threads with locks and queues, and avoid race conditions and deadlocks.
Learn how Python string formatting works with f-strings, the .format() method, and the modulo operator, plus the strengths of each tool.
Explore Python's modern string formatting tools, and learn to harness f-strings and the .format() method for interpolation and formatting.
Learn how to define your own Python function, pass data into it, and return results to write clean, reusable code in your programs.
Explore how Python asyncio works and when to use it. Follow hands-on examples to build efficient programs with coroutines and awaitable tasks.
Use the Python json module to convert, read, write, and validate JSON data for APIs, config files, and on-disk storage.
Become an Alexa Python developer by building and deploying your own Alexa skill, a joke bot that responds to voice commands on Amazon Alexa devices.
Master indefinite iteration with Python while loops: build simple and complex loops, use break and continue, and handle infinite loops.
Compare three ways of storing images in Python, as PNG files on disk, in LMDB, and in HDF5, with timings for reading and writing lots of images.
In this quiz, you'll test your understanding of defining and calling Python functions. You'll revisit the def keyword, parameters, arguments, and more
This is a quiz that will review topics covered in our An Intro To Threading tutorial.
You can take this quiz to test your understanding of modern tools for string formatting in Python. These tools include f-strings and the .format() met
In this quiz, you'll test your understanding of working with JSON in Python. By working through this quiz, you'll revisit key concepts related to JSON