utils.rcclient.libs.pyfunc_uploader

Module Contents

Classes

PyFuncUploader

PyFuncUploader uploads Python modules as cloud functions/function templates

Attributes

logger

utils.rcclient.libs.pyfunc_uploader.logger
class utils.rcclient.libs.pyfunc_uploader.PyFuncUploader(key_path: str = None, bucket: str = None)

PyFuncUploader uploads Python modules as cloud functions/function templates to GCP.

signed_url_client
file_upload_client
upload(module_path: str)

Uploads the specified Python module to GCP as a cloud function.

Parameters:

module_path (str) – The local file path of the Python module to upload

Returns:

None

Raises:

InvalidFileExtention – If the specified module path does not have a .py file extension