From the course: Managing Python Projects

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Code reuse

Code reuse - Python Tutorial

From the course: Managing Python Projects

Start my 1-month free trial

Code reuse

- [Instructor] By writing code in an established way, we can pack and reuse this code in other projects. This is a huge gain since it gives us a system where one bot fix or a new feature can be used by all of the clients of this package. In the Python ward, we have an established way of packaging code. When you package code in a way that a package manager, such as Peep, understands, people can easily use your code. Packaging is not just for open source project. Many companies have internal depositories of packages they use for infrastructure and other common tasks. They will use the same method for packaging and standard structure of code that many other Python projects use. It's easy for new employees to come in and get familiar with the code.

Contents