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

support multi-module packages #196

Open
casperdcl opened this issue May 18, 2018 · 1 comment
Open

support multi-module packages #196

casperdcl opened this issue May 18, 2018 · 1 comment
Labels

Comments

@casperdcl
Copy link

server:

zerorpc --server --bind ipc:///tmp/os os

client:

zerorpc ipc:///tmp/os path.join one two  # error

The only workaround right now seems to be having a separate server zerorpc --server --bind ipc:///tmp/os_path os.path and using zerorpc ipc:///tmp/os_path join one two

@bombela
Copy link
Member

bombela commented Jul 12, 2018

Serving a module via the zeropc cli tool is targeted to modules designed for being exposed on the network. In this case, you really expose all public functions in a single module. If you want to expose anything else, write a python script that gathers all the functions you want, and start a zerorpc.Server with it. Looks at how the zerorpc cli does it as a source of inspiration.

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

No branches or pull requests

2 participants