Skip to content

constants

PACKAGE_DATA_PATH module-attribute

PACKAGE_DATA_PATH = 'data'

PYTHON_MODEL_KEY module-attribute

PYTHON_MODEL_KEY = '__chassis_model'

python_pickle_filename_for_key

python_pickle_filename_for_key(key)

Helper function for serializing and deserializing Python functions.

When used in the SDK, it returns the name of the file that should be written out in the build context based on what kind of function it is.

When used inside the built container, it does exactly the opposite, it returns the name of the file that it should load to hydrate the function.

Parameters:

Name Type Description Default
key str

One of the keys defined in [chassis.runtime.constants][].

required

Returns:

Type Description
str

The appropriate filename for the given key.