Python for .NET Developers Transcripts
Chapter: Package management and external libraries
Lecture: Package management introduction
Login or
purchase this course
to watch this video and the rest of the course contents.
0:00
Package management and programming languages is so important. It used to be kind of a rare thing
0:07
and it made working with other libraries super painful. In C# you have the base class library, and all the stuff
0:14
that's shipped with it, like EntityFramework.dll and so on and that was great because it was right there.
0:19
But if you wanted something else, how did you get it? You went out to GitHub or, after a bit, SourceForge
0:26
and you download a library and you copy it into your project and you start working with it. Well, that's probably okay
0:32
it's not super validated or anything like that it maybe came from somewhere sketchy but let's assume, you know, let's just
0:38
put the security stuff at the side for a minute. Just from... Even if the code is trustworthy there are problems here, right?
0:44
How do you know when there's a new version? How do you know if there's some kind of issue that needs to be fixed?
0:49
How do you help someone else get the same version? If they go and download something from that same place
0:55
maybe it's a different version and it behaves differently. So package management is some infrastructure that will list all the available libraries
1:03
that are registered with it for your environment: C#, Python, whatever. Now, you see, I'm going to use these libraries
1:09
and make sure you get the right version you can always get the same version. In .NET you've had NuGet for quite a while
1:16
and that's been really important there. So much so that Microsoft even ships some of .NET itself through NuGet. You'll be happy to hear that Python
1:24
has something equally awesome, maybe even more so.