yaml
dumps(py_data, *, sort_keys=True, default_flow_style=False)
¶
Dump data as yaml using the safe_dump method.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
py_data |
Any
|
Any object that may be serialized. |
required |
sort_keys |
bool
|
Whether to sort the keys. |
True
|
default_flow_style |
bool | None
|
Whether to use the default flow style. |
False
|
Returns:
Type | Description |
---|---|
str
|
A yaml serialized string. |