Skip to main content

Expose a process stdio to a unix socket

Project description

CI Coverage PyPI License

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


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.4.0b1.tar.gz (74.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

stdio_socket-1.4.0b1-py3-none-any.whl (16.3 kB view details)

Uploaded Python 3

File details

Details for the file stdio_socket-1.4.0b1.tar.gz.

File metadata

  • Download URL: stdio_socket-1.4.0b1.tar.gz
  • Upload date:
  • Size: 74.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for stdio_socket-1.4.0b1.tar.gz
Algorithm Hash digest
SHA256 6b1af9d105c14af229ba93cca46db4e37f060ddb29f8b80ac6a344edeacc0f0f
MD5 15058461d7feb08148f9a5d98423eaf9
BLAKE2b-256 d7257a02fbd05446d4ba7377a1792aa063df4968a719b15cbe49c80bbdde38a8

See more details on using hashes here.

File details

Details for the file stdio_socket-1.4.0b1-py3-none-any.whl.

File metadata

  • Download URL: stdio_socket-1.4.0b1-py3-none-any.whl
  • Upload date:
  • Size: 16.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for stdio_socket-1.4.0b1-py3-none-any.whl
Algorithm Hash digest
SHA256 3722a6933f8ee03c4e703f7ab7dfdd6ff35f1709432f439a912f419978fb1627
MD5 24170e4866ba1a82c9fbcbdff17f05f0
BLAKE2b-256 ecd832145737f1f3a32da4c01ecb36d6082f3ca642ab8d9457c6155b824d0928

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page