From 56b29c27de168d8aa83342605a4233c8c5cfc8d3 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Sun, 30 Jan 2022 12:19:21 -0500 Subject: [PATCH] Add msg serialization coding todo resources list --- tractor/msg.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tractor/msg.py b/tractor/msg.py index 3c96893..461d54e 100644 --- a/tractor/msg.py +++ b/tractor/msg.py @@ -33,6 +33,15 @@ Built-in messaging patterns, types, APIs and helpers. # the new "Implicit Namespace Packages" might be relevant? # - https://www.python.org/dev/peps/pep-0420/ +# add implicit serialized message type support so that paths can be +# handed directly to IPC primitives such as streams and `Portal.run()` +# calls: +# - via ``msgspec``: +# - https://jcristharif.com/msgspec/api.html#struct +# - https://jcristharif.com/msgspec/extending.html +# via ``msgpack-python``: +# - https://github.com/msgpack/msgpack-python#packingunpacking-of-custom-data-type + from __future__ import annotations from pkgutil import resolve_name