PythonSerializer
No overview available.
Attributes
| Attribute | Type | Description |
|---|---|---|
| writer | W | The output destination where the serialized Python data is written. |
| formatter | F = CompactFormatter | The formatting logic used to control the visual representation and spacing of the serialized output. |
Constructor
Signature
def PythonSerializer(
writer: W,
formatter: F = CompactFormatter
) - > [PythonSerializer](pythonserializer.md?sid=serializers_ser_pythonserializer)
Parameters
| Name | Type | Description |
|---|---|---|
| writer | W | The output destination for the serialized data. |
| formatter | F = CompactFormatter | The formatting strategy used for the serialization process. |
Signature
@staticmethod
def new(
writer: W
) - > PythonSerializer< W, CompactFormatter >
Parameters
| Name | Type | Description |
|---|---|---|
| writer | W | The output destination where the serialized Python data will be written |
Signature
@staticmethod
def with_formatter(
writer: W,
formatter: F
) - > PythonSerializer< W, F >
Parameters
| Name | Type | Description |
|---|---|---|
| writer | W | The output destination for the serialized data |
| formatter | F | The formatting implementation used to style the Python output (e.g., PrettyFormatter) |