Methods Module

Methods for the sub commands to run.

pacifica.cli.methods.configure(args, _config_data)[source]

Configure the client by parsing current configuration.

pacifica.cli.methods.download(args, _interface_data)[source]

Download data specified in args.

pacifica.cli.methods.generate_global_config(config_ini='config.ini')[source]

Generate a default configuration.

pacifica.cli.methods.generate_requests_auth(global_ini)[source]

Generate arguments to requests for authentication.

pacifica.cli.methods.query(args, interface_data)[source]

Query from the metadata configuration.

pacifica.cli.methods.save_user_config(global_ini)[source]

Save the global config to the path.

pacifica.cli.methods.set_environment_vars(global_ini)[source]

Set some environment variables to be used later.

pacifica.cli.methods.set_verbose(verbose)[source]

Set the log level to arg value.

pacifica.cli.methods.upload(args, interface_data)[source]

Upload the data based on bits.

pacifica.cli.methods.verify_type(obj)[source]

Convert obj to requests verify argument.

Verify the type of obj that it will be consumed by requests verify option correctly.