Modern APIs with FastAPI and Python Transcripts
Chapter: Welcome to the course
Lecture: The big ideas covered in the course
Login or
purchase this course
to watch this video and the rest of the course contents.
0:00
Let's take just a moment and talk about what we're going to cover in the
0:02
course. Instead of going chapter by chapter by chapter,
0:05
just these are the bullet points of what we're gonna talk about.
0:08
I just want to set the stage for the big ideas we're gonna cover and we're gonna
0:11
weave them in and out throughout the various chapters.
0:14
We're going to start by building a simple API, and I really want you
0:18
just get a sense of like,
0:19
here's the essence of FastAPI before we get into any of the details, so
0:23
right away we're just gonna build a simple API.
0:26
And then we're gonna explore these language features,
0:28
these modern Python language features. What is Pydantic?
0:32
What is async and await and how do you use it?
0:35
All those things, type annotations, type hints, we're gonna explore the language features
0:38
so you're in a position to absolutely take advantage of all of them as we go
0:43
through the rest of the course.
0:44
We're gonna talk about Pydantic in particular because it's such an important way to model the
0:48
data exchange and the data validation.
0:50
So we're gonna focus big time on Pydantic.
0:53
Also, one of the things that FastAPI doesn't make immediately obvious is
0:58
how do I actually have a web page?
1:00
So if I build an API,
1:01
it has this data exchange and not everything is even executable within a browser,
1:07
potentially. You could have something that requires a post, or a
1:10
delete HTTP verb, which is hard to make the browser do without a little bit
1:14
of a plug-in or something,
1:15
right? You just can't click the links.
1:17
You'll see that we can use the same templating language as Flask has, Jinja, to actually
1:23
write and serve static HTML or dynamic HTML even and then static files.
1:28
So you could add a little bit of the functionality of what Django or Flask brings
1:33
by default. You could do that in here is well,
1:36
we're gonna focus on making that possible.
1:37
So instead of having two different frameworks,
1:40
one for your API and something for the Web page part,
1:43
you could just do it all in FastAPI.
1:46
After we get all this set up and in place,
1:48
what we're gonna actually do is build a much richer application that we're gonna build throughout
1:52
the rest of the course. We're gonna focus on building a rich, full featured
1:56
API that takes advantage of data exchange, data validation, async and await, calling
2:01
external services, all that kind of stuff.
2:04
And then we're going to round out the course by taking that full featured API that
2:07
we're going to build and deploying it out on the Internet on a virtual machine.
2:11
So we'll take you through all you gotta do to set up Linux to run production
2:15
grade FastAPI applications out there on the Internet in some cloud host.
2:21
So much exciting stuff here, really looking forward to going through it all with you
2:24
and so these are a lot of neat ideas,
2:26
and we're gonna weave them through the course as we go through the content.