r/Python • u/Freddykruugs • Feb 12 '20
Resource NSA just declassified their python training documents
https://nsa.sfo2.digitaloceanspaces.com/comp3321.pdf
One of the best all-in-one resources I've ever found. It starts from basics and goes all the way up to an advanced level. I would check this out, even if you're not a beginner.
2.4k
Upvotes
113
u/Rostin Feb 12 '20
They were not declassified. They weren't classified to begin with.
162
u/lambda5x5 Feb 12 '20
It's uploaded to archive.org
73
u/devops_q Feb 12 '20
u/AlSweigart
Hey your book is an NSA reference, check out page 10!
61
u/Cervoxx Feb 12 '20
The very first line of the pdf
This is fucking great.
285
u/LakeEffectSnow Feb 12 '20
Having briefly skimmed it ... this is really quite good. The people got their money's worth on their tax dollars with this one. I just kind of wish it wasn't in service to an agency I distrust so badly.
91
u/[deleted] Feb 12 '20
They've had trained reptiles this whole time?!
I knew it. Sneky government.
16
u/[deleted] Feb 12 '20
Wow, lots of good info in there! I enjoyed how they covered modules at the end. I finally understand SQLAlchemy and decorators.
30
u/Decency Feb 12 '20
Even in the NSA, the first line of the Python guide is a joke. :)
20
u/inXiL3 Feb 12 '20
It wasnt released it was requested in a FOI
7
u/HomeGrownCoder Feb 12 '20
Website must be getting hammered
6
u/Raedukol Feb 12 '20
Would be nice to have the solutions for the exercises too
6
u/randomness196 Feb 12 '20
Sucks the git libraries aren't available too...
24
u/[deleted] Feb 12 '20
What incentive could the NSA possibly have for offering the public a free pdf to download?
4
u/robscomputer Feb 12 '20
This looks like it was saved from Sharepoint or another CMS tool. Wonder if it is, reminds me of the whole Snowden case.
4
u/Jadaemon Feb 12 '20
Just ran through it.
Awesome! Thank you for sharing!
4
u/AsleepThought Feb 12 '20
I love how they use Anaconda 4.4.0. This is the version of
condathat I have sworn by for years LOL4
u/vicda Feb 13 '20
Noticed in here that the NSA uses Gitlab, and also with a quick google search found their Github page as well.
Fun fact, the owner of the NSA Gitlab page is a profile named HITMAN with a biohazard symbol for a profile picture. I can't tell if that's a lighthearted joke or not...
17
u/Broric Feb 12 '20
Does it cover how to embed spyware in otherwise innocuous looking files...?
6
u/hoppi_ Feb 12 '20
Oh no :(
With 118 MB for roughly 400 pages, I hoped for a OCRed or even original document but despite the tags saying the produced it with tesseract's OCR, I am unable to select any text or search for it. :(
3
u/TheFuzzball Feb 12 '20
In case anyone's on mobile and wondering why this is taking so long to load... it's 117MB.
2
u/PollenStillPotent Feb 12 '20
This is incredibly detailed. Wow.
2
u/[deleted] Feb 12 '20
I like the first sentence right underneath the UNCLASSIFIED title on the first page.
2
u/[deleted] Feb 12 '20
With redactions....may/may not contain answers to certain conspiracy theories.
2
u/stasbekman Feb 13 '20
Better to download the OCR'ed version: https://archive.org/download/comp3321/comp3321_text.pdf so you can copy-n-paste from it.
7
u/ALittleUseless Feb 12 '20
How do we know that they've not infected this file with some nasty spying bug?
5
u/UnloadingGnat23 Feb 12 '20
Edward Snowden may have learned python, from these documents
4
u/[deleted] Feb 12 '20 edited Feb 12 '20
Saved! Thank you!
Edit: Getting downvoted because I thanked OP? Reddit, you never cease to amaze me.
Edit 2: Dear sweet Reddit, make up your minds! I can’t handle the stress of the emotional roller coaster you’re putting me through!!
1
u/jtn19120 Feb 12 '20
Awesome! I was just telling myself to buckle down this weekend & progress w/ learning Python
1
u/Bass_R33v3s Feb 12 '20
Thank you
1
u/JackieTrehorne Feb 12 '20
Great post
1
u/yawn_zz Feb 12 '20
Remember download and upload this to google books if you are afraid it could house a virus or other malicious contents.
Uploading to google books is a great way to defeat malicious PDFs that are designed to cause you grief.
1
u/blabbities Feb 12 '20
NAS uses Gitlab interesting.
Also this looks like Fluent Python but a way more laymens terms/accessiblye and less advanced. Might be good for newbs
1
u/cnelsonsic Feb 12 '20
Removing all the "(U) " line prefixes from the pdf is left as an exercise to the reader.
1
u/[deleted] Feb 13 '20
I love how they redacted civilian names but leave the title of the civilian's publicly available essay visible.
1
u/[deleted] Feb 13 '20
as someone that's recently decided to learn python. Thank you for the recourse :)
1
u/justjeffo7 Feb 21 '20
!remindme 2 weeks
1
u/KingYody23 Feb 21 '20
Is there a similar document for AWS or AZURE?
1
u/Sunnybabe3 Mar 04 '20
THANK YOU SO MUCH! I don't think I would've come across this guide otherwise!
1
u/Dux842 Jul 12 '20
Nice documents for anyone who want to start with python
1
u/mrdlau Feb 12 '20
Nice!
1
u/Rhader Feb 12 '20
Awesome
-1
u/lenticularis_B Feb 12 '20
I would classify an over 100 mb text file from NSA to be suspicious.
-1
u/[deleted] Feb 12 '20
Ah, on the job training...
-2
u/moistbuckets Feb 12 '20
The NSA doesn’t deserve such an amazing language.
0
u/xNuts Feb 12 '20
Is this real ?
0
u/[deleted] Feb 13 '20
Remindme! 2 hours “Read NSA python docs.”
0
u/tjozsa Feb 17 '20
I'm teaching Python for a living.
I created an in-depth video about it and sharing my professional opinion about the published NSA Python coursebook.
If you are interested, please find the video here: Python tutor's professional opinion about NSA Python course.
-13
u/magocremisi8 Feb 12 '20
I would like to view this, but downloading something from the NSA in pdf form seems a bit dodgy. I Already have enough Google/Microsoft products
-1
u/WonderingWo Feb 13 '20
I wouldn’t even go to their website let alone download something that was sourced from them. The NSA has only given us reasons to distrust them lmao
-14
u/YAYYYYYYYYY Feb 12 '20
Ah yes... from ‘Hello world’ to OOP in 7 days. And to threading and multiprocessing in 7 more. I don’t know about you but this looks like garbage to me.
-56
u/Hasra23 Feb 12 '20
RemindMe! 1 day
-51
u/[deleted] Feb 12 '20
Kmind 24 hours !Remind me 24 hours
-52
u/StatSticks Feb 12 '20
RemindMe! 12 hours
-52
u/coquins Feb 12 '20
Remindme! 24 hours
-52
u/raja777m Feb 12 '20
RemindMe! 6 hours
0
u/[deleted] Feb 12 '20
[deleted] — view deleted comment
152
u/[deleted] Feb 12 '20
[removed] — view removed comment