New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add support for de/serializing objects with json and msgpack #230
Commits on Nov 3, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 5a53459 - Browse repository at this point
Copy the full SHA 5a53459View commit details -
LayerSet/Layer: record self._lazy and make unlazify idempotent
similar to Font, DataSet, ImageSet
Configuration menu - View commit details
-
Copy full SHA for bc82a2a - Browse repository at this point
Copy the full SHA bc82a2aView commit details -
remove unused Attribute.metadata[copyable]
we currently don't have any attributes that are init=True and copyable=False, the only copyable=False is Font.path which is also init=False, so simply checking if init=False is enough
Configuration menu - View commit details
-
Copy full SHA for c1322fe - Browse repository at this point
Copy the full SHA c1322feView commit details -
Configuration menu - View commit details
-
Copy full SHA for e0f3d6a - Browse repository at this point
Copy the full SHA e0f3d6aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 829e35a - Browse repository at this point
Copy the full SHA 829e35aView commit details -
Configuration menu - View commit details
-
Copy full SHA for d3a2b6a - Browse repository at this point
Copy the full SHA d3a2b6aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3442969 - Browse repository at this point
Copy the full SHA 3442969View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0dfc108 - Browse repository at this point
Copy the full SHA 0dfc108View commit details -
test de/serializing ALL ufoLib2.objects
and in fact I had forgotten to decorate one of them (Info) ;)
Configuration menu - View commit details
-
Copy full SHA for fb32994 - Browse repository at this point
Copy the full SHA fb32994View commit details -
Configuration menu - View commit details
-
Copy full SHA for 30f639f - Browse repository at this point
Copy the full SHA 30f639fView commit details -
remove ufoLib2.serde.pickle, doesn't add anything
Doing font.pickle_dumps() is exactly the same as doing pickle.dumps(font), same for Font.pickle_loads(s) vs pickle.loads(s), we don't use cattrs for pickling. So it's better to simply remove the extra code, pickling still works out of the box (even with lazy objects now).
Configuration menu - View commit details
-
Copy full SHA for 0ac647b - Browse repository at this point
Copy the full SHA 0ac647bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 6378e56 - Browse repository at this point
Copy the full SHA 6378e56View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5a8d9bc - Browse repository at this point
Copy the full SHA 5a8d9bcView commit details -
require latest attrs/cattrs; rename GenConverter => Converter
in latest cattrs, GenConverter _is_ the normal Converter anyway
Configuration menu - View commit details
-
Copy full SHA for a8223ed - Browse repository at this point
Copy the full SHA a8223edView commit details -
Configuration menu - View commit details
-
Copy full SHA for b421da3 - Browse repository at this point
Copy the full SHA b421da3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7c7f7f7 - Browse repository at this point
Copy the full SHA 7c7f7f7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1206873 - Browse repository at this point
Copy the full SHA 1206873View commit details
Commits on Nov 4, 2022
-
Configuration menu - View commit details
-
Copy full SHA for ebc3131 - Browse repository at this point
Copy the full SHA ebc3131View commit details -
Configuration menu - View commit details
-
Copy full SHA for b88ff09 - Browse repository at this point
Copy the full SHA b88ff09View commit details -
Configuration menu - View commit details
-
Copy full SHA for c6e188c - Browse repository at this point
Copy the full SHA c6e188cView commit details -
add standalone load/dump functions in each ufoLib2.serde submodule
So one can do ufoLib2.serde.json.load('MyFont.json', ufoLib2.Font) in alternative to ufoLib2.Font.json_load('MyFont.json')
Configuration menu - View commit details
-
Copy full SHA for 36d4632 - Browse repository at this point
Copy the full SHA 36d4632View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7a9d1de - Browse repository at this point
Copy the full SHA 7a9d1deView commit details