flexible_pickle#
API documentation for tradingstrategy.utils.flexible_pickle Python module in Trading Strategy.
Module description#
Flexible pickle implementation.
Don’t crash on missing enum values
Log info about broken/missing values for developer awareness
Classes#
Sentinel marker for enum values that could not be deserialised. |
|
Custom unpickler that handles missing enum values gracefully. |
Functions#
|
Filter out BrokenEnumValue markers from a collection. |
|
Load a pickle file with flexible enum handling. |
|
Load pickle data from bytes with flexible enum handling. |