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

feature_request: ability to access methods of cached objects #12

Open
tkmmark opened this issue Nov 4, 2020 · 2 comments
Open

feature_request: ability to access methods of cached objects #12

tkmmark opened this issue Nov 4, 2020 · 2 comments

Comments

@tkmmark
Copy link
Contributor

tkmmark commented Nov 4, 2020

To allow methods of cached objects (e.g. a compas datastructure) to be used on-the-fly without necessarily having to write a proxy wrapper function to work with the cached object to be loaded from the server side...

Something like this (in Proxy.py):
image

And in Server.py:
image

A silly toyish example of how this is used:
image

@tkmmark
Copy link
Contributor Author

tkmmark commented Nov 4, 2020

Of course, this could be done more elegantly and conveniently where the returned cached_id object have methods that can be called directly with some additional wrapping, and getattrs setattrs etc

@tkmmark
Copy link
Contributor Author

tkmmark commented Nov 4, 2020

By the way, 'cls_from_dtype' in encoders.... awesome!

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

1 participant