chapter two

2 Preparing for package development

 

This chapter covers

  • Managing virtual environments using venv

At the beginning of a project, you’re likely eager to get started and accomplish something tangible. This is understandable—building things and solving problems can be rewarding. But it’s valuable to move slowly at first so you can move quickly later and longer as a project matures. When you’re exploring a new technology or practice, it can also be helpful to get practice with it first so you can use it deftly. A bit of planning up front can go a long way in your productivity and resulting morale. In this chapter you’ll use asdf and venv to create a development environment for the package you’ll work on for the rest of this book.

[Important]  Important

Before reading on, visit appendix A to install the tools you’ll need for this chapter.

2.1 Managing Python virtual environments

2.1.1 Creating virtual environments with venv

2.2 Summary