Skip to content

Add msg2dict and dict2msg - #50

Merged
jph00 merged 1 commit into
mainfrom
pr/add-msg2dict-and-dict2msg
Sep 3, 2026
Merged

Add msg2dict and dict2msg#50
jph00 merged 1 commit into
mainfrom
pr/add-msg2dict-and-dict2msg

Conversation

@jph00

@jph00 jph00 commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

A message and its parts convert to JSON-ready dicts and back without loss. msg2dict tags each part with its wire type and keeps raw, and dict2msg rebuilds the message through the part registry. Underscore-prefixed attributes a host sets on a part stay behind. Part rendering lists a part's attributes from __dict__ the same way, and no longer relies on store_attr's record.

@jph00 jph00 added the enhancement New feature or request label Sep 3, 2026
@jph00
jph00 merged commit 33d446b into main Sep 3, 2026
1 check passed
@jph00
jph00 deleted the pr/add-msg2dict-and-dict2msg branch September 3, 2026 00:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant