Unix Platform Modules
grp
Reads Unix group database entries by name or numeric group ID. Entries describe group names, identifiers and listed members; listed members do not necessarily capture every user with that primary group. Use OS authorization checks rather than group listings as a security decision. The example inspects the result type only; no real group data is queried.
Formal Syntax & Structure
python syntaxpython
import grpReturn Value
module
Module namespace available through import; import is a statement, not a value-returning expression.
Working Example
Example Snippetpython
import grpprint("gr_gid" in dir(grp.struct_group))