pwd — UNIX Password Database — PyMOTW 3

The pwd module can be used to read user information from the UNIX password database (usually /etc/passwd ). The read-only interface returns tuple-like objects with named attributes for the standard fields of a password record.

Read more…

This post is part of the Python Module of the Week series for Python 3. See for more articles from the series.