Functions enables Python code to be hosted and executed in the cloud, on demand or by using a schedule. Execution, status and logs are available through the API. A function is uploaded to the Files API as a zip file with at least a Python file called handler.py
(unless specified otherwise through the functionPath
-argument) that must contain a function named handle
with any of the following arguments: data
, client
, secrets
, or 'function_call_info', which are passed into the function.
The latest version of Cognite SDK's are available, and additional python packages and version specifications can be defined in a requirements.txt
in the root of the zip.