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 ...

Get Expert Python Programming now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.