Users¶
Module: jupyterhub.user
¶
UserDict
¶
-
class
jupyterhub.user.
UserDict
(db_factory, settings)¶ Like defaultdict, but for users
Getting by a user id OR an orm.User instance returns a User wrapper around the orm user.
-
add
(orm_user)¶ Add a user to the UserDict
-
count_active_users
()¶ Count the number of user servers that are active/pending/ready
Returns dict with counts of active/pending/ready servers
-
delete
(key)¶ Delete a user from the cache and the database
-