RESTful and HTTP APIs in Pyramid Transcripts
Chapter: Course setup and tools
Lecture: Setup on macOS

Login or purchase this course to watch this video and the rest of the course contents.
0:00 Let's talk about how to install the various tools in Python on your operating system.
0:04 So there is only two tools, two resources you need
0:08 to take this class outside the source code on the github repository,
0:11 one is you're going to need Python 3,
0:14 remember, Python 3 does not come on OS X,
0:17 Python 2.7 does, but Python 3 does not,
0:20 so you've got to install that, as well as PyCharm.
0:23 So let's go look at these.
0:25 I pulled up the websites that we are going to be working with,
0:27 python.org, this is where we get Python 3,
0:30 PyCharm over here on jetbrains.com,
0:33 we are going to download PyCharm here
0:36 and I also pulled up the other three options,
0:38 Sublime Text if you are interested in that,
0:41 Atom, you've got to watch this video it's very funny, a great little light weight editor.
0:45 We'll come over here, download this, quick,
0:48 just it defaults to the latest of both Python 2 and Python 3 for your operating system,
0:52 so you pick this, download, save, I've already done that.
0:56 So let's go over here and see, if I type Python you will get something,
1:02 but you'll see that Python 2.7 10 comes up,
1:05 if I type Python 3, there is no Python 3,
1:08 so let's install Python 3 and make sure everything setup good there.
1:14 So, this is what I got of python.org,
1:18 just click through agree to whatever it's going to make you agree to-
1:22 ok, so Python is installed. Let's just try a little trick again,
1:27 we can even do a -- version on the end,
1:30 excellent, so we have Python 3 installed and it's the latest version.
1:34 So, that's off to a good start.
1:36 Next, PytCharm- when you just click download,
1:39 it gives us a choice between what version do you want
1:40 the professional or the community edition,
1:44 this is up to you, I love this tool, I paid money for it,
1:46 I am getting the professional, the community is free,
1:51 if you are wondering what the differences are,
1:53 just come back here to the main PyCharm page and you can see,
1:56 it will show you that actually the Python features themselves
1:58 there is not too much of a difference,
2:00 but the web development and Python web frameworks
2:03 and database stuff that is only in the professional edition.
2:06 But, lucky for you, none of that is actually happening in this class
2:09 so you can pick either of these that you wish.
2:12 Once you have it downloaded, you will have DMG, disk image here,
2:15 I love their little installer, here is the app, drag it over here,
2:19 wait a moment, and you should have PyCharm installed.
2:22 Now, let's finish installing, check that, and we are just going to run PyCharm.
2:27 First time it will warn you this came from the internet,
2:31 beware, yeah, we did that on purpose.
2:34 Make sure you get it from right place.
2:36 And, here is PyCharm, I've already run it before,
2:38 but the first time you run it, it will ask you for the settings,
2:41 I like mine, this dark theme, so everywhere it ask you about colors,
2:45 there is two places, you can say Dracula if you want the same theme as me,
2:48 or pick another one.
2:51 The other two editors are just Atom, here is Atom, nice and clean,
2:55 and Sublime text, again, super small, super clean.
2:58 Let me show you a technique that will be helpful
3:00 for opening these projects and basically work with Python projects, in general.
3:04 So, here I have Request Masters,
3:07 I got this off of GitHub, this is the Request package
3:09 and this is actually the source code, so here you can see,
3:12 here is all the Python files, just like the project base,
3:15 if I want to open this in PyCharm, I just drop it on here,
3:18 this is OS X only feature, but if I drop it like this
3:20 it will open the whole project, and see here is all the code that we need.
3:24 You do a similar thing for Sublime text and you can do a similar thing for Atom.
3:30 So, here is all the packages, same thing.
3:34 So, that's a really helpful tip, if you are jumping from project to project
3:37 and you want to just open up this project, open up that after project,
3:40 open up before project, and so on, I am sure you will find that useful throughout the class.
3:44 All right, that's it, this OS X system is ready to roll, ready to work on this class.