datalad_next.utils.get_specialremote_credential_properties

datalad_next.utils.get_specialremote_credential_properties(params)[source]

Determine properties of credentials special remote configuration

The input is a parameterization as it would be given to git annex initremote|enableremote <name> ..., or as stored in remote.log. These parameters are inspected and a dictionary of credential properties, suitable for CredentialManager.query() is returned. This inspection may involve network activity, e.g. HTTP requests.

Parameters:

params (list or dict) -- Either a list of strings of the format 'param=value', or a dictionary with parameter names as keys.

Returns:

Credential property name-value mapping. This mapping can be passed to CredentialManager.query(). If no credential properties could be inferred, for example, because the special remote type is not recognized None is returned.

Return type:

dict or None