getent (pypi): Python interface to the POSIX getent family of commands
Keywords: getent|group|passwd|shadow|network|alias|host