perago.metadata_value#

perago.metadata_value(value)[源代码]#

Serialize a LakeFS metadata value into the string form LakeFS stores.

Parameters:
valueobject

Metadata value candidate. None becomes an empty string, strings are preserved, and other JSON-serializable values are encoded with stable separators and key ordering.

Returns:
str

String value suitable for LakeFS metadata maps.

Raises:
TypeError

Raised when value is not JSON-serializable and is not already a string.

参数:

value (object)

返回类型:

str