PyCharm is a cross platform integrated development environment (IDE) for Python programmers. It embodies all the tooling a Python programmer needs to be productive including an excellent programming text editor, syntax highlighting, code completion, project navigation, database tooling, and project options for web development.
- [Instructor] So what is PyCharm? PyCharm is an integrated development environment or IDE. An IDE is the primary tool for any professional programmer. Normally, when we think of an IDE, we think of an enhanced text editor with a built in compiler. Tools like Visual Studio, Eclipse, and Intellij come to mind. In addition to the usual syntax highlighting and programming indentation features, we are also used to seeing just in time compilation that points out mistakes as well as code formatting hints and refactoring like those that you'd see in Resharper.
While you don't compile Python code the same way you do Java or C sharp, PyCharm acts like a true IDE for Python, but unlike Visual Studio, PyCharm is geared specifically and only for Python development. It contains work flows for creating and maintaining virtual environments, a visual counterpart for the Pep library manager, linters that keep your code compliant with Pep 8 standards and a host of other handy general development tools. Typical IDEs also have a nice file and project management system in them and PyCharm is no exception.
PyCharm leverages JetBrain's database IDE data grip to provide the same capabilities from that tool directly in PyCharm. There's no need to switch between your database tools and your coding tool. PyCharm supports many of the major revision control systems, including Get, Subversion, and for Force, so again, there's no reason to leave the IDE to manage your code. There are also some useful miscellaneous features like direct access to a Python console, which allows you to interact with the rebel, and there's a command line terminal window that gives you access to your operating system command prompt within the virtual environment pre-loaded.
PyCharm has tools for deploying your code to servers via SSH and it even has support for working with vagrant or virtualization tools like Docker that allow you to test your code in production-like environments. Speaking of testing, PyCharm also supports all major testing platforms for Python with the ability to run and view your tests with the familiar green bar display common to most testing tools. As you can see, PyCharm has a lot to offer. It might be possible to configure another tool like Sublime or Visual Studio to do some of the same things, but I really doubt you could do all of it and even if you could, wouldn't you rather spend your time making software versus running down plugins and getting them to work? PyCharm has all of this right out of the box and runs in Windows, Mac, and Linux equally well.
Now that we know what PyCharm can do, let's actually see how to accomplish all of this.
- Installing the PyCharm, Git, and Pypy packages
- Adding functions
- Refactoring code
- Calling packages
- Debugging code
- Creating databases
- Working with in-line SQL
- Creating web projects with PyCharm