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


Talk Python's Mastodon Michael Kennedy's Mastodon