- SerializationRegistry.register(structure_family, media_type, func)¶
Register a new media_type for a structure family.
The structure we are encoding, as in “array”, “dataframe”, “variable”, …
MIME type, as in “application/json” or “text/csv”. If there is not standard name, use “application/x-INVENT-NAME-HERE”.
Should accept the relevant structure as input (e.g. a numpy array) and return bytes or memoryview