Therearejust a fewmorethings I wanttoshowyouguys, Uh, let's goaheadandgetintoit.
Sothefirstthing I wannatalkabouthispackageswithPythonsoyouknowthereasonwhyPython?
It's such a popularlanguageinsuch a powerfullanguage.
Yes, it's easytowrite.
Yes, it's fast, too, right?
Yes, it's easytoreadallthosethings, butthereareotherlanguagesthatmeetthosecriteria, like R andJuliaandRubyandotheronesthat I can't thinkofrightoffthetopofmyhead.
Now, anotherthingthatyoucandioisifyouweregonnaimport a lotoffunctions, youmightuse a wildcardlikethis.
Sothisisjustalmostlike a regularexpressionforeverythingor a wildcardthatjustmeansallthethingsSowecoulddothatandwecanrunthisbutthismakesyourcodeprettyhardtoread.
Firstofall, becausethatsomeone's readingyourcodeand, like, do a thing.
Also, let's sayyou'vegot a lotofscriptsin a thingthatwewouldmorelikelycall a package.
Likeinthiscase, it's just a singlescriptthatwe'regonnaimport.
I wouldn't callthat a libraryor a package.
Well, youwouldcall a packageislike a group, a clusterofscripts.
Solet's make a newfolderand I'm gonnacallit a moddir.
Andthen I'm gonnatakeexamplemodhere, and I'm justgonnaputitintomydirt.
Sothenyoumightalsodosomethinglikethis.
Sofrommoderdotexamplemodimport, do a thingprintorno, wedon't havetoprintthat.
Wejustrun, dosayingboom.
Okay.
Andsothat's howyoucouldhave, like a groupofscriptsinsideof a directoryandreferenceoneofthemspecifically.
Okay, I thinkthatprettymuchcovers.
Ah, themeantheextremebasicsofwhat a moduleis.
It's notthatcomplex.
Inmostcases, it's just a pythonfile.
Insomecases, itdoesget a littlemorecomplexbecauseit's really a pythonwrapperaround C code s soitdoesget a littlemorechallengingandespeciallyhistorically, itwasverychallengingtoworkwithWindowsinthisway.
Butthethingis, you'reyou'replausiblybringingin a lotofcode.
Andthenwhenyouusenumbpiewhenyouimportnumbbywhateverisinlike a mainlubeorarenot a mainloubut a mainfunctiontorunorwhenyouinitializethatthingthatyou'veinstalled, you'repleasantlyrunning a lotofcode.
Andit's in a waythat a firewallislesslikelytocatchbecauseitdoesn't look a suspectasyourunningsomecrazydot e x e file.
Sopayattentionandthinkaboutwhatyou'redoinghere, becausewhenyou'reinstalling a packagefromPip, youaretrustingsomeoneelse's code.
You'rejusttakingitunlessyou'rereadingeveryline, which I knowyou'renotlike.
Youhavetounderstandwhatyou'reactuallydoing.
Andbecauseofthis, I wouldreallywatchoutbecause, like, forexample, reallyrecently, um, let's say a pythonpackagepythonpackage.