lastpassreportingcli.library package

Submodules

lastpassreportingcli.library.datamodels module

Main code for datamodels.

class lastpassreportingcli.library.datamodels.FolderMetrics(folder: lastpasslib.datamodels.Folder, cutoff_date: datetime.datetime, warning_whitelist: list = <factory>)[source]

Bases: object

static check_if_is_secret_in_warning(secret, cutoff_date, warning_whitelist)[source]
cutoff_date: datetime
folder: Folder
property full_path
property has_warnings
property is_completed
property is_in_progress
property is_in_root
property is_personal
is_secret_in_warning(secret)[source]
property name
property number_of_secrets
property number_of_secrets_to_update
property number_of_updated_secrets
property number_of_warnings
property path
property percentage_done
property percentage_left
property to_json
warning_whitelist: list
property warnings
class lastpassreportingcli.library.datamodels.PresentationFolder(folder: lastpassreportingcli.library.datamodels.FolderMetrics)[source]

Bases: object

folder: FolderMetrics
property is_personal
property name
property percentage_color
property presentation_row
property warning_color
class lastpassreportingcli.library.datamodels.WarningSecret(folder_name: str, secret: Union[lastpasslib.secrets.Password, lastpasslib.secrets.SecureNote])[source]

Bases: object

folder_name: str
secret: Union[Password, SecureNote]
property to_json

lastpassreportingcli.library.validators module

Main code for datamodels.

lastpassreportingcli.library.validators.check_args_set(args, arguments)[source]
lastpassreportingcli.library.validators.comma_delimited_list_variable(value)[source]

Support for environment variables with comma delimited lists of values.

lastpassreportingcli.library.validators.default_environment_variable(variable_name)[source]

Closure to pass the variable name to the inline custom Action.

Parameters:

variable_name – The variable to look up as environment variable.

Returns:

The Action object.

lastpassreportingcli.library.validators.environment_variable_boolean(value)[source]

Parses an environment variable as a boolean.

Parameters:

value – The value of the environment variable.

Returns:

True if environment variable is one of the supported values, False otherwise.

lastpassreportingcli.library.validators.get_user_input_or_quit(variable_name, password=False, title=None)[source]
lastpassreportingcli.library.validators.is_valid_secret_id(secret_id)[source]
lastpassreportingcli.library.validators.validate_secret_ids(secret_ids)[source]

Module contents

lastpassreportingcli package.

Import all parts from lastpassreportingcli here