Credentials
Credential
Base class for simple credential handling.
__init__()
Class for reading and writing env variable credentials.
TODO: Include checks for more shell types.
get_cred_set(prefix)
Helper method for getting a credential set.
get_credential(name)
Helper method for getting a single credential.
set_credential(name, value)
Helper method for setting a credential.
Make sure to re-source your session after writing!
Parameters:
Name | Type | Description | Default |
---|---|---|---|
`name` |
str
|
The name of the credential, usually '_PWD' or '_USR'. |
required |
`value` |
str
|
The value of the credential, e.g. a password. |
required |