utils.credentials module

utils.credentials.find_pass_cfg(file_path=None)[source]

Returns existing path to cfg file.

Verifies existence of file_path argument or returns default file_path for pass.cfg file.

Parameters:file_path (Optional(str) – Path to pass.cfg file.
Returns:Verified path to pass.cfg file.
Return type:string
utils.credentials.read_cfg(file_path, account)[source]

Reads pass.cfg file and returns dictionary of accounts.

Parameters:
  • file_path (str) – Path to pass.cfg file.
  • account (str) – Account information to extract.
Returns:

Account information object.

Return type:

dict