Expose a process stdio to a unix socket
Project description
stdio_socket
Share the stdio of a process on a unix socket.
This package has 3 entrypoints:
- stdio-expose: launch a process and share its stdio on a unix socket
- console: connect to a socket to get a console into the above process
- pptty: wrap a process in a psuedo tty (used by stdio-expose)
| Source | https://github.com/epics-containers/stdio-socket |
|---|---|
| PyPI | pip install stdio-socket |
| Releases | https://github.com/epics-containers/stdio-socket/releases |
Server CLI
Usage: stdio-expose [OPTIONS] COMMAND
Expose the stdio of a process on a socket at unix:///tmp/stdio.sock.
This allows a local process to connect to stdio of the running process.
Use Ctrl+C to disconnect from the socket.
The following command will connect to the socket and provide interactive
access to the process: socat UNIX-CONNECT:/tmp/stdio.sock -,raw,echo=0
or use the built in client: console
╭─ Arguments ──────────────────────────────────────────────────────────────╮
│ * command TEXT Command to run and expose stdio [default: None] │
│ [required] │
╰──────────────────────────────────────────────────────────────────────────╯
╭─ Options ────────────────────────────────────────────────────────────────╮
│ --socket PATH The filepath to the socket to use │
│ [default: /tmp/stdio.sock] │
│ --version print the version number and exit │
│ --help Show this message and exit. │
╰──────────────────────────────────────────────────────────────────────────╯
Client CLI
Usage: console [OPTIONS]
Connect to a socket and pass stdio to/from that socket
╭─ Options ────────────────────────────────────────────────────────────────╮
│ --socket PATH The filepath to the socket to use │
│ [default: /tmp/stdio.sock] │
│ --version print the version number and exit │
│ --help Show this message and exit. │
╰──────────────────────────────────────────────────────────────────────────╯
Pseudo TTY CLI
Usage: pptty [OPTIONS] COMMAND
Use the pty library to wrap a process in psuedo tty
╭─ Arguments ──────────────────────────────────────────────────────────────╮
│ * command TEXT Command to run and expose stdio [default: None] │
│ [required] │
╰──────────────────────────────────────────────────────────────────────────╯
╭─ Options ────────────────────────────────────────────────────────────────╮
│ --help Show this message and exit. │
╰──────────────────────────────────────────────────────────────────────────╯
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
stdio_socket-1.1.0.tar.gz
(26.2 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file stdio_socket-1.1.0.tar.gz.
File metadata
- Download URL: stdio_socket-1.1.0.tar.gz
- Upload date:
- Size: 26.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
68253a4478c28724bcbb9c76a7e2cdf351f12d17d34f6f8b360cf2f1cc28f642
|
|
| MD5 |
852a1811ff8379ebbd9ac3ea8980719e
|
|
| BLAKE2b-256 |
bf39f741b00939d835a535e8fc692359b047603286e7411ce70da37b2b80abc5
|
File details
Details for the file stdio_socket-1.1.0-py3-none-any.whl.
File metadata
- Download URL: stdio_socket-1.1.0-py3-none-any.whl
- Upload date:
- Size: 15.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
34003f1d4d6249ec4c58d07db5e7e8d7ffa07f231ef0f37c177173fd9c6f5c00
|
|
| MD5 |
b473bad8f476c27ba5a88d359d1ce14f
|
|
| BLAKE2b-256 |
3d06bd5e20ab19a772f98bbd3fcf9884ecf8d16fc986ac6f627f6f5cf89cba6a
|