What’s this course about and how is it different?
This course is designed to get you creating new APIs running in the cloud with FastAPIs quickly. We start off with just a little foundational concepts, then jump right into build our first API with FastAPI.
Then we explore the foundational modern Python features to make sure you’re ready to take full advantage of this framework. We’ll look at how async and await works in Python, how to build self-validating and describing classes with Pydantic, Python 3’s type hints, and other core language concepts.
We round out the course by building a realistic API working with live data. Then we deploy that API using nginx + gunicorn + uvicorn running on Ubuntu in a cloud VM at Digital Ocean.
What topics are covered
In this course, you will:
- See how simple working with basic APIs in FastAPI can be.
- Create API methods that handle common HTTP verbs (GET, POST, DELETE, etc)
- Return JSON data to API clients
- Use async and await to create truly scalable applications
- Leverage Pydantic to create required and optional data exchange
- Have FastAPI automatically validate and convert data types (e.g. “2021-01-05” to a datetime)
- Organize your app using APIRoutes to properly factor your application across Python files.
- Return the most appropriate error response (e.g. 400 Bad Request) to API clients
- To deploy Python web applications in production-ready configurations on Linux
- Understand why gunicorn and uvicorn should be used together in production
- And lots more
Who is this course for?
This course is for anyone who wants to build an API with Python as the backend language. If you want your API to rival the speed and features of any major web API framework, this is the course to take.
The student requirements are quite light for this course. You’ll need Basic Python language knowledge:
- API clients (making a call with requests)
Note: All software used during this course, including editors, Python language, etc., are 100% free and open source. You won’t have to buy anything to take the course.