On this page
pwd.getpwall
Up: pwd | Next: pwd.getpwnam
Rel: pwd.getpwnam, pwd.getpwuid, pwd.struct_passwd
Ref: docs.python.org — pwd.getpwall
Tags: #public #python3 #stdlib #pwd
Import
import pwd
from pwd import getpwall
Signature & Overview
pwd.getpwall()
Return a list of all available password database entries, in arbitrary order.
Usage
import pwd
entries = pwd.getpwall()
assert isinstance(entries, list) and len(entries) >= 1
Gotchas
- Unix-only: Can be slow on large enterprise directory-bound hosts.
REPL Inspect
from pwd import getpwall
help(getpwall)
Linked from
Related notes
- tuts/python3/stdlib_module/pwd/getpwnam Linked here; links to this page; shared tags: #pwd, #stdlib
- tuts/python3/stdlib_module/pwd/getpwuid Linked here; links to this page; shared tags: #pwd, #stdlib
- tuts/python3/stdlib_module/pwd/struct_passwd Linked here; links to this page; shared tags: #pwd, #stdlib
- tuts/python3/stdlib_module/pwd Linked here; links to this page; shared tags: #stdlib
- tuts/c/stdlib shared tags: #stdlib
- tuts/c/stdlib/assert shared tags: #stdlib
- tuts/c/stdlib/assert/assert shared tags: #stdlib
- tuts/c/stdlib/assert/static_assert shared tags: #stdlib
- tuts/c/stdlib/ctype shared tags: #stdlib
- tuts/c/stdlib/ctype/isalpha shared tags: #stdlib