oasislmf.computation.run.platform

Classes

PlatformBase

Base platform class to handle opening a client connection

PlatformList

Return status and details from an Oasis Platform API server

PlatformRun

End to End - run model via the Oasis Platoform API

PlatformDelete

Delete either a 'model', 'portfolio' or an 'analysis' from the API's Database

PlatformGet

Download file(s) from the api

Module Contents

class oasislmf.computation.run.platform.PlatformBase(**kwargs)[source]

Bases: oasislmf.computation.base.ComputationStep

Base platform class to handle opening a client connection

step_params[source]
server[source]
load_credentials(login_arg)[source]

Load credentials from JSON file or Prompt for username / password

Options:

1.’–server-login ./APIcredentials.json’ 2. Load credentials from default config file ‘-C oasislmf.json’

open_connection()[source]
tabulate_json(json_data, items)[source]
print_endpoint(attr, items)[source]
select_id(msg, valid_ids)[source]
class oasislmf.computation.run.platform.PlatformList(**kwargs)[source]

Bases: PlatformBase

Return status and details from an Oasis Platform API server

step_params[source]
run()[source]
class oasislmf.computation.run.platform.PlatformRun(**kwargs)[source]

Bases: PlatformBase

End to End - run model via the Oasis Platoform API

chained_commands[source]
run()[source]
class oasislmf.computation.run.platform.PlatformDelete(**kwargs)[source]

Bases: PlatformBase

Delete either a ‘model’, ‘portfolio’ or an ‘analysis’ from the API’s Database

step_params[source]
delete_list(attr, id_list)[source]
run()[source]
class oasislmf.computation.run.platform.PlatformGet(**kwargs)[source]

Bases: PlatformBase

Download file(s) from the api

step_params[source]
extract_args(param_suffix)[source]
download(collection, req_files, chuck_size=1024)[source]
run()[source]