Python for the .NET developer Transcripts
Chapter: Package management and external libraries
Lecture: PyPI: Python's NuGet
0:00 As I hinted at before
0:01 NuGet changed the way you work in .NET.
0:05 All of a sudden, there are many, many libraries
0:08 and I mean many. When I took this screenshot
0:11 to put this presentation together a few days ago
0:13 there was 174,000 unique packages or libraries available
0:18 and you can just go to Visual Studio
0:19 check a few boxes, and boom, you've got them
0:22 added to your app and you always get the right version
0:24 and it made such a huge difference for working in .NET.
0:28 If you're going to come over to Python
0:29 you're going to want to make sure there's something like this.
0:32 172,000 packages, that is killer.
0:35 To be fair, a ton of those-- not a ton
0:38 a lot of those are Microsoft library packages
0:41 like I hinted at in EntityFramework and EntityFramework Core
0:43 and that kind of stuff
0:44 cause a lot of .NET itself is even delivered
0:46 through this mechanism
0:47 but there's many, many, many of those
0:48 that are third-party libraries you can bring in
0:51 like json.net or something like that
0:53 and work with it within your application
0:55 just almost as easy as right-click, add reference.
0:58 Just right-click, manage NuGet packages.
1:01 So if you're going to come to Python
1:03 it would be really nice if Python had something
1:05 kind of like this, right?
1:06 Some way to say I want to use these libraries
1:09 make sure they're part of my project
1:10 keep them in sync.
1:11 If there's an update, tell me that there is
1:14 and give me a mechanism to get the latest.
1:17 Well, luckily, Python has something completely awesome
1:21 PyPI, Python Package Index.
1:24 And PyPI has a bunch of libraries.
1:27 You saw how cool NuGet was?
1:29 Check this out, 199,000 packages.
1:32 Actually, since I took this screenshot
1:34 but before I pressed record
1:35 it's surpassed 200,000 packages.
1:38 There are so many libraries in Python.
1:41 I think this is one of the most exciting parts
1:44 of this course because so far
1:45 we've been working with the language.
1:47 .NET's great, but where the true magic is
1:50 where the special stuff happens is when you start to build
1:52 out of these other libraries.
1:54 All of a sudden we can talk to databases
1:56 and call web APIs and build websites and applications
1:59 and all these types of things
2:00 and this all comes from these external libraries
2:02 we can bring into our applications. So NuGet is awesome.
2:06 PyPI, I think, is even a little bit more awesome.
2:10 It has more packages.
2:11 Python itself is not delivered this way
2:13 so this number is maybe a slightly bigger gap
2:16 as I hinted. Final word on the pronunciation.
2:19 Some folks say pie-pie.
2:21 Alright? Py and then the PI is like the math pi
2:26 so you say pie, people say pie-pie.
2:28 It's not pie-pie. It's pie-P-I, Python Package Index.
2:33 How can I say that with confidence
2:35 and not go, well, maybe I just say it differently?
2:37 Maybe I just have a different opinion.
2:38 Hmm, the Talk Python to Me podcast
2:40 I've interviewed Guido van Rossum
2:42 the creator of Python. I've interviewed several times the people
2:44 who have created and continue to run this website here.
2:48 And I ask those people who run the website
2:50 and Guido just use the words
2:52 ask them, how do you say this
2:54 the letters P-Y-P-I, in your world, how do you pronounce it?
2:59 Pie-P-I, just so you know when you're talking to other folks.