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

Is there a way to use pymux in an code? #76

Open
analogrithems opened this issue May 9, 2019 · 1 comment
Open

Is there a way to use pymux in an code? #76

analogrithems opened this issue May 9, 2019 · 1 comment

Comments

@analogrithems
Copy link

Not a bug but a question/feature request. I'm trying to find out how to use pymux with docker-py to shell into containers. I want one window to be the container shell and the other to tail the logs. I've done this in bash already, but I'd like to have it python to simplify features.

I want to be able to spawn a window and pass it a function to start running. I know I can call it with an executable but after looking at the code I can't see an entry point for passing it a subprocess. It looks like it currently only can call shlex to call a another proc

@asmodehn
Copy link

I have a somewhat related request : I would like to have, in a single async python process, a multi-window input/output.
For example running ptpython on the left window, and visualize some dynamic log output on the right window.

The difference however, is that these would not be "process" in the usual OS sense, but multiple coroutines running as tasks in the background, inside only one python process.

Therefore some kind of interface to have a pymux window somehow providing a pty to a subprocess/function/coroutine would be useful I think...

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