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

Get The Python 3 Standard Library by Example, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.