Skip to content

Commit f74a048

Browse files
authored
Merge pull request talkpython#100 from manikanta-hitunik-com/patch-100
Update 415-pydantic-20-and-fastapi.txt
2 parents 4137691 + 6c0dc7f commit f74a048

File tree

1 file changed

+12
-13
lines changed

1 file changed

+12
-13
lines changed

transcripts/415-pydantic-20-and-fastapi.txt

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@
204204

205205
00:06:49 Honestly, I've never heard a bad thing about FastAPI, and people are really enjoying it.
206206

207-
00:06:54 And then here comes Samuel just changing the foundation, changing up Finante.
207+
00:06:54 And then here comes Samuel just changing the foundation, changing up Pydantic.
208208

209209
00:06:59 - Taking FastAPI.
210210

@@ -312,7 +312,7 @@
312312

313313
00:11:07 Can we work with you to smooth this over?
314314

315-
00:11:09 you know, worst case, pin it, be, you know, equal, equal, Pydantic equal, equal, 1.10.
315+
00:11:09 you know, worst case, init, be, you know, equal, equal, Pydantic equal, equal, 1.10.
316316

317317
00:11:14 - I think we'll carry on supporting critical security fixes for a year.
318318

@@ -360,7 +360,7 @@
360360

361361
00:13:33 Like what's the story for you guys?
362362

363-
00:13:35 - So like, - Pedantic wise.
363+
00:13:35 - So like, - Pydantic wise.
364364

365365
00:13:37 - Yeah, yeah.
366366

@@ -530,7 +530,7 @@
530530

531531
00:20:38 And for that, I needed to A, extract some attributes from nested fields and B, parse dates and things like that.
532532

533-
00:20:44 And I use Pylantic v2.
533+
00:20:44 And I use Pydantic v2.
534534

535535
00:20:45 And like, it was vastly faster with v2.
536536

@@ -554,7 +554,7 @@
554554

555555
00:21:14 And because of the new ways that Pydantic can handle the data, we're gonna be able to, there's something that needs to be done in FastAPI, but we're gonna be able to let the parsing of the data, let Pydantic handle that in the Rust side.
556556

557-
00:21:28 So Pydantic will be able to just read the JSON bytes instead of reading them in the Python side and let Pydantic do that, and then Pydantic give the models back to the rest of the code of FastEPA.
557+
00:21:28 So Pydantic will be able to just read the JSON bytes instead of reading them in the Python side and let Pydantic do that, and then Pydantic give the models back to the rest of the code of FastAPI.
558558

559559
00:21:39 That alone will boost performance a lot, but the fact that it's being done in Rust, in the Rust side, it's just gonna be amazing.
560560

@@ -574,7 +574,7 @@
574574

575575
00:22:43 >> Maybe even some of these crazy stream buffer protocols.
576576

577-
00:22:47 >> Yeah, like protocol buffers with gRPC or even message pack or a bunch of these things that There's no obvious way and there's no native way to have support for that, for reading the data and for exporting the data.
577+
00:22:47 >> Yeah, like protocol buffers with crazy stream buffer or even message pack or a bunch of these things that There's no obvious way and there's no native way to have support for that, for reading the data and for exporting the data.
578578

579579
00:23:00 And that's one of the things that I have in plans.
580580

@@ -634,7 +634,7 @@
634634

635635
00:25:04 So you, you're kind of putting.
636636

637-
00:25:05 Hydanek in both those layers.
637+
00:25:05 Pydantic in both those layers.
638638

639639
00:25:08 And so those speed ups are like twice as good or something like that.
640640

@@ -686,7 +686,7 @@
686686

687687
00:26:44 So, dear listener, let me ask you a question.
688688

689-
00:26:46 how would boundless cardinality and lightning fast SQL queries impact the way that you develop real-time applications? InfluxDB processes large time series data sets and provides low latency SQL queries, making it the go-to choice for developers building real-time applications and seeking crucial insights. For developer efficiency, InfluxDB helps you create IoT, analytics, and cloud applications using time-stamped data rapidly and at scale. It's It's designed to ingest billions of data points in real time with unlimited cardinality.
689+
00:26:46 how would boundless cardinality and lightning fast SQL queries impact the way that you develop real-time applications? InfluxDB processes large time series data sets and provides low latency SQL queries, making it the go-to choice for developers building real-time applications and seeking crucial insights. For developer efficiency, InfluxDB helps you create IoT, analytics, and cloud applications using time-stamped data rapidly and at scale. It's designed to ingest billions of data points in real time with unlimited cardinality.
690690

691691
00:27:19 InfluxDB streamlines building once and deploying across various products and environments from the edge on premise and to the cloud.
692692

@@ -862,7 +862,7 @@
862862

863863
00:33:42 I think it's something that will probably be improvable, but I think there's currently no way.
864864

865-
00:33:46 There will probably be a way at some point, but to be able to say, hey, this equal alchemy column is a column when it's accessed at the class level, but this is gonna be a string when it's accessed at the instance level.
865+
00:33:46 There will probably be a way at some point, but to be able to say, hey, this SQLalchemy column is a column when it's accessed at the class level, but this is gonna be a string when it's accessed at the instance level.
866866

867867
00:33:58 - A scope level in the annotated, you know.
868868

@@ -884,7 +884,7 @@
884884

885885
00:34:54 They might not want to do it themselves, but they get that it's a legitimate thing to do.
886886

887-
00:34:58 - How much pushback was there when you first came out with PyTandric there?
887+
00:34:58 - How much pushback was there when you first came out with Pydantic there?
888888

889889
00:35:01 - I think we were like the black sheep of Python.
890890

@@ -924,7 +924,7 @@
924924

925925
00:36:30 I won't go into all of the details of it, but yeah, we would...
926926

927-
00:36:33 The high-level takeaway is that the typing community seemed happy with the idea that they might make a change to typing to make it easier for us.
927+
00:36:33 The high-level takeaway is that the typing community seemed happy with the idea that they might make a change to typhint to make it easier for us.
928928

929929
00:36:41 And I think that's also for the Pydantic team to engage better.
930930

@@ -1098,7 +1098,7 @@
10981098

10991099
00:44:30 Yes, it's a fundamental change to the language.
11001100

1101-
00:44:32 Yes, it makes the syntax or function look a bit more like Rust or something, but if you look at it independently of our experience, it's a heck of a lot more elegant than importing Typefra.
1101+
00:44:32 Yes, it makes the syntax or function look a bit more like Rust or something, but if you look at it independently of our experience, it's a heck of a lot more elegant than importing Typefor.
11021102

11031103
00:44:43 - Yeah, yeah.
11041104

@@ -1311,4 +1311,3 @@
13111311
00:49:47 (upbeat music)
13121312

13131313
00:49:50 [Music]
1314-

0 commit comments

Comments
 (0)