<filename>labs/hr/src/hr/users.py<gh_stars>0
import pwd

def get_users():
    users = []
    for user in pwd.getpwall():
        if user.pw_uid > 1000:
            users.append({
                "user" : user.pw_name,
                "id" : user.pw_uid,
                "home" : user.pw_dir,
                "shell" : user.pw_shell
            })
    return users
<filename>labs/hr/src/hr/users.py<gh_stars>0
import pwd

def get_users():
    users = []
    for user in pwd.getpwall():
        if user.pw_uid > 1000:
            users.append({
                "user" : user.pw_name,
                "id" : user.pw_uid,
                "home" : user.pw_dir,
                "shell" : user.pw_shell
            })
    return users