dankilman / multiplex Goto Github PK
View Code? Open in Web Editor NEWView output of multiple processes, in parallel, in the console, with an interactive TUI
License: MIT License
View output of multiple processes, in parallel, in the console, with an interactive TUI
License: MIT License
Perhaps it would be useful for custom processes designed to run within multiplex to control box states: e.g. collapse, box height, maximize, etc..
Not sure how the API for this should look like, but might be useful
This will be useful for debugging purposes when things don't work as expected
Full blown input would be an overkill and would certainly be better served by tmux.
This should address basic cases with prompts such as: do you want to continue: [y/n]
and alike
Strangely, there seems to be an issue handling this byte stream hotplug-autorun.without-multiplex.log, it results in this error:
Traceback (most recent call last):
File "/mnt/stix/usb-live-linux/scripts/hotplug-autorun", line 193, in <module>
main()
File "/mnt/stix/usb-live-linux/scripts/hotplug-autorun", line 181, in main
mp.run()
File "/usr/lib/python3/dist-packages/multiplex/multiplex.py", line 25, in run
Loop <_UnixSelectorEventLoop running=False closed=True debug=False> that handles pid 583160 is closed
asyncio.run(self.run_async(load))
File "/usr/lib/python3.10/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "/usr/lib/python3.10/asyncio/base_events.py", line 646, in run_until_complete
return future.result()
File "/usr/lib/python3/dist-packages/multiplex/multiplex.py", line 46, in run_async
await self.viewer.run()
File "/usr/lib/python3/dist-packages/multiplex/viewer.py", line 186, in run
await self._main()
File "/usr/lib/python3/dist-packages/multiplex/viewer.py", line 208, in _main
async for obj, output in streamer:
File "/usr/lib/python3/dist-packages/aiostream/stream/advanced.py", line 59, in base_combine
result = task.result()
File "/usr/lib/python3/dist-packages/multiplex/viewer.py", line 270, in _wrapped_iterator
async for elem in iterator:
File "/usr/lib/python3/dist-packages/multiplex/iterator.py", line 200, in g
async for data in s:
File "/usr/lib/python3/dist-packages/aiostream/stream/advanced.py", line 59, in base_combine
result = task.result()
File "/usr/lib/python3/dist-packages/multiplex/iterator.py", line 34, in stream_reader_generator
yield b.decode()
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe2 in position 5034: unexpected end of data
Any idea? ๐ค
Don't have windows installation to test this one
Currently, in order to search content, one needs to dump content using Shift-O
which is not optimal
Currently buffer has not limit and can grow indefinitely. This may be an issue in some long running processes.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.