O'Reilly logo

Expert Python Programming by Tarek Ziadé

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 5. Writing a Package

This chapter focuses on a repeatable process to write and release Python packages. Its intents are:

  • To shorten the time needed to set up everything before starting the real work, in other words the boiler-plate code

  • To provide a standardized way to write packages

  • To ease the use of a test-driven development approach

  • To facilitate the releasing process

It is organized in the following four parts:

  • A common pattern for all packages that describes the similarities between all Python packages, and how distutils and setuptools play a central role

  • How generative programming ( http://en.wikipedia.org/wiki/Generative_programming) can help this through the template-based approach

  • The package template creation, where everything needed ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required