add proxy for the first part and try to develop the second part

This commit is contained in:
Pierre Geeraert
2025-12-03 12:08:56 +00:00
parent 6c34d510e5
commit 460f18d85a
1095 changed files with 358799 additions and 5 deletions
@@ -0,0 +1,16 @@
from typing import Callable
class Serializer:
@classmethod
def get_serializers(cls) -> Callable:
methods = [
(method_name, getattr(cls, method_name))
for method_name in dir(cls)
if callable(getattr(cls, method_name))
]
return sorted([
method_callable
for (method_name, method_callable) in methods
if method_name.startswith("serialize_")
], key=lambda x: x.__name__)