def _users_from_environ(env_prefix='<STR_LIT>'):
auth_string = os.environ.get(env_prefix + '<STR_LIT>')<EOL>if not auth_string:<EOL><INDENT>return {}<EOL><DEDENT>result = {}<EOL>for credentials in auth_string.split('<STR_LIT:|>'):<EOL><INDENT>username, password = credentials.split('<STR_LIT::>', <NUM_LIT:1>)<EOL>result[username] = password<EOL><DEDENT>return result<EOL>
Environment value via `user:password|user2:password2`