O'Reilly logo

The Python 3 Standard Library by Example, Second Edition by Doug Hellmann

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

Appendix B. Outside of the Standard Library

Although the Python standard library is extensive, it is complemented by a robust ecosystem of modules provided by third-party developers and available from the Python Package Index.1 This appendix describes some of these modules, and the situations in which you might want to use them to supplement or even replace the standard library.

1 https://pypi.python.org/pypi

B.1 Text

The string (page 1) module includes a very basic template tool. Many web frameworks include more powerful template tools, but Jinja2 and Mako3 are popular stand-alone alternatives. Both support looping and conditional control structures as well as other features for combining data with a template to produce text output.

3 http://docs.makotemplates.org/en/latest/ ...

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