perago.metadata_value#
- perago.metadata_value(value)[源代码]#
Serialize a LakeFS metadata value into the string form LakeFS stores.
- Parameters:
- valueobject
Metadata value candidate.
Nonebecomes 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
valueis not JSON-serializable and is not already a string.
- 参数:
value (object)
- 返回类型: