niprov.users module

class niprov.users.Users(dependencies)

Bases: object

determineUser(passedUserValue)

Determine the name of the user creating provenance.

The following methods will be tried to determine the username; 1) The passedUserValue argument if not None 2) The configuration file or setting has a value for the key user 3) The OS username.

Parameters:passedUserValue (str) – This value will override any other method to determine the username.
Returns:The username or handle of the user.
Return type:string