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

Add Python client #17

Closed
TheHashTableSlasher opened this issue May 21, 2020 · 1 comment
Closed

Add Python client #17

TheHashTableSlasher opened this issue May 21, 2020 · 1 comment
Assignees
Labels
enhancement New feature or request high priority Should be worked on before anything else matlab client Relates to the Matlab client code specifically server Relates to the server code

Comments

@TheHashTableSlasher
Copy link
Collaborator

Something like:

import dime
import numpy as np

d = dime.DimeClient("python", "ipc", "/tmp/dime.sock")

d["a"] = np.array([[1, 2, 3], [4, 5, 6], [7, 8, 9]])
d.send_var("python", "a")
del d["a"]
d.sync()

print(d["a"])
# [[1 2 3]
#  [4 5 6]
#  [7 8 9]]

Note that #3 needs to be completed as a dependency. Also, the server should be aware of its clients' platforms, and instruct them to change their serialization method depending on what other types of clients are connected.

@TheHashTableSlasher TheHashTableSlasher added enhancement New feature or request high priority Should be worked on before anything else matlab client Relates to the Matlab client code specifically server Relates to the server code labels May 21, 2020
@TheHashTableSlasher TheHashTableSlasher self-assigned this May 25, 2020
@JunejaAmmy
Copy link

Hi,

I'm facing the below issue, could you please help?

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request high priority Should be worked on before anything else matlab client Relates to the Matlab client code specifically server Relates to the server code
Projects
None yet
Development

No branches or pull requests

2 participants