Skip to content
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

Upgrade storage for easier handling of model types #17

Open
jrriehl opened this issue Nov 22, 2022 · 1 comment
Open

Upgrade storage for easier handling of model types #17

jrriehl opened this issue Nov 22, 2022 · 1 comment

Comments

@jrriehl
Copy link
Contributor

jrriehl commented Nov 22, 2022

It would be better to add methods to allow easier storage and access of model types to avoid having to do things like this:

tables = {int(num): TableStatus(**status) for (num, status) in ctx.storage._data.items()}
@Archento
Copy link
Member

I just stumbled across JsonPickle which may help with the storage problem. I was able to deserialise complex objects without issue and where json.dumps(obj.__dict__) was just not good enough.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants