platypush/plugins/otp/__init__.py
def provision_counter_otp(self, name: Optional[str] = None, issuer_name: Optional[str] = None, initial_count=0,
                              secret: Optional[str] = None, secret_path: Optional[str] = None) -> str:
        """
        Generate a provisioning URI for a counter-OTP that can be imported in Google Authenticator.

        :param name: Name or e-mail address associated to the account used by the Google Authenticator.
            If None is specified then the value will be read from the configured ``provisioning_name``.
        :param issuer_name: Name of the issuer of the OTP (default: default configured ``issuer_name`` or None).
        :param initial_count: Initial value for the counter (default: 0).
        :param secret: Secret token to be used (overrides configured ``secret``).
        :param secret_path: File containing the secret to be used (overrides configured ``secret_path``).
        :return: Generated provisioning URI.
        """
        name = name or self.provisioning_name
        issuer_name = issuer_name or self.issuer_name
        assert name, 'No account name or default provisioning address provided'

        _otp = self._get_hopt(secret, secret_path)
        return _otp.provisioning_uri(name, issuer_name=issuer_name, initial_count=initial_count)

        Generate a provisioning URI for a counter-OTP that can be imported in Google Authenticator.

        :param name: Name or e-mail address associated to the account used by the Google Authenticator.
            If None is specified then the value will be read from the configured ``provisioning_name``.
        :param issuer_name: Name of the issuer of the OTP (default: default configured ``issuer_name`` or None).
        :param initial_count: Initial value for the counter (default: 0).
        :param secret: Secret token to be used (overrides configured ``secret``).
        :param secret_path: File containing the secret to be used (overrides configured ``secret_path``).
        :return: Generated provisioning URI.
        
Generate a provisioning URI for a counter-OTP that can be imported in Google Authenticator.
Generate a provisioning URI for a counter - OTP that can be imported in Google Authenticator .
def provision_counter_otp(self, name: Optional[str] = None, issuer_name: Optional[str] = None, initial_count=0,
                              secret: Optional[str] = None, secret_path: Optional[str] = None) -> str:
        name = name or self.provisioning_name
        issuer_name = issuer_name or self.issuer_name
        assert name, 'No account name or default provisioning address provided'
        _otp = self._get_hopt(secret, secret_path)
        return _otp.provisioning_uri(name, issuer_name=issuer_name, initial_count=initial_count)
def provision_counter_otp ( self , name : Optional [ str ] = None , issuer_name : Optional [ str ] = None , initial_count = 0 , secret : Optional [ str ] = None , secret_path : Optional [ str ] = None ) -> str : name = name or self . provisioning_name issuer_name = issuer_name or self . issuer_name assert name , 'No account name or default provisioning address provided' _otp = self . _get_hopt ( secret , secret_path ) return _otp . provisioning_uri ( name , issuer_name = issuer_name , initial_count = initial_count )
Generate a provisioning URI for a counter-OTP that can be imported in Google Authenticator.
Generate a provisioning URI for a counter - OTP that can be imported in Google Authenticator .
"""
        Generate a provisioning URI for a counter-OTP that can be imported in Google Authenticator.

        :param name: Name or e-mail address associated to the account used by the Google Authenticator.
            If None is specified then the value will be read from the configured ``provisioning_name``.
        :param issuer_name: Name of the issuer of the OTP (default: default configured ``issuer_name`` or None).
        :param initial_count: Initial value for the counter (default: 0).
        :param secret: Secret token to be used (overrides configured ``secret``).
        :param secret_path: File containing the secret to be used (overrides configured ``secret_path``).
        :return: Generated provisioning URI.
        """
Generated provisioning URI.
Generated provisioning URI .
self
name
Optional[str]
Name or e-mail address associated to the account used by the Google Authenticator.
If None is specified then the value will be read from the configured ``provisioning_name``.
Name or e - mail address associated to the account used by the Google Authenticator . If None is specified then the value will be read from the configured ` ` provisioning_name ` ` .
issuer_name
Optional[str]
Name of the issuer of the OTP (default: default configured ``issuer_name`` or None).
Name of the issuer of the OTP ( default : default configured ` ` issuer_name ` ` or None ) .
initial_count
Initial value for the counter (default: 0).
Initial value for the counter ( default : 0 ) .
secret
Optional[str]
Secret token to be used (overrides configured ``secret``).
Secret token to be used ( overrides configured ` ` secret ` ` ) .
secret_path
Optional[str]
File containing the secret to be used (overrides configured ``secret_path``).
File containing the secret to be used ( overrides configured ` ` secret_path ` ` ) .