Chapter 13. Development Environment
Always wanted to travel back in time to try fighting a younger version of yourself? Software development is the career for you!
Part I of this book mostly described the syntax of the Python programming language. The only computer tools you have really needed so far have been these:
-
A text editor, to write the Python code
-
A terminal, to run those Python programs
This chapter is devoted to the art and science of Python development, with “best practice” recommendations including other tools, concepts, and ways of organizing your work. Absorb them, and you too can be a card-carrying Pythonista:
-
How to find, install, and update Python code
-
IDEs—tools beyond the basic text editor and Terminal
-
Source control using Git
Find Python Code
When you need to develop code, the fastest solution is to steal it—from a source that allows it.
The Python standard library is wide, deep, and mostly clear. Everything in it is free to use. Dive in and look for those pearls.
Like the halls of fame for various sports, it takes time for a module to get into the standard library. New packages are constantly appearing; throughout this book, I’ve highlighted some that either do something new or do something old better. Python is advertised as batteries included, but you might need a new kind of battery.
So where, outside the standard library, should you look for good Python code?
-
The first place to look is the Python Package Index (PyPI). Formerly ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access