Utilities
For your convenience we provide some “utility” function that are not directly an interface with the rest API but can be commonly use.
CPM Functions
- async cpm_change(self, address, username_filter: list = None)
CPM Change a list of accounts for an address :param address: exact value of field Address in EPV :param username_filter : Put a list of username in filter to change only those accounts (default all accounts)
- async cpm_change_failed_accounts(self, address, username_filter: list = None)
CPM Change for “red” accounts :param address: exact value of field Address in EPV :param username_filter : Put a list of username in filter to change only those accounts (default all accounts)
- async manual_set_password(self, address, password, username_filter: list = None)
Set a custom password a list of accounts for an address :param address: exact value of field Address in EPV :param password: New password to put on the address :param username_filter: Put a list of username in filter to change only those accounts (default all accounts)
- async reconcile(self, address, username_filter: list = None)
Reconcile a list of accounts for an address :param address: exact value of field Address in EPV :param username_filter : Put a list of username in filter to change only those accounts (default all accounts)
- async reconcile_failed_accounts(self, address: str, username_filter: list = None)
Reconcile a list of accounts for a address if they are red in PVWA :param address: exact value of field Address in EPV :param username_filter : Put a list of username in filter to change only those accounts (default all accounts)
- async account_status(self, address: str, accounts: list)
Give the CPM status of accounts for an address :param address: Exact match of address field :param accounts: List of accounts to get the status for :return: A string with True and the number of good accounts found, or False with list of failed accounts