It's like screen's stuff command, without screen
Project description
shtuff 
Shell stuff will stuff commands into a shell à la tmux send-keys or screen stuff.
Installation
If your environment is configured to use Python 3 by default:
$ pip install shtuff
Otherwise:
$ pip3 install shtuff
Please note: shtuff only works on Python 3.7+!
Examples
In shell A, run:
$ shtuff as shell-a
In shell B, run:
$ shtuff into shell-a "git status"
Observe how shell A ran git status.
An example use case for shtuff new might be a setup script to open a couple
shells automatically. Consider this script:
#!/usr/bin/env bash
termite -e "shtuff new vim" &
termite -e "shtuff new 'tail -f /var/log/somelog.log'" &
This script will open two terminals, one running vim, and one running tail.
Development
This repo defines a nix devShell. If you use direnv, it will automatically get
loaded for you and you can skip to Run Tests:. If you do not use direnv, you
will need to enter the shell with:
$ nix develop
Run tests:
$ make test
Releasing
We release using Makefile, choose the relevant target:
$ make release-major
$ make release-minor
$ make release-patch
and wait for the automated deploy to PyPi!
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
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 shtuff-0.4.0.tar.gz.
File metadata
- Download URL: shtuff-0.4.0.tar.gz
- Upload date:
- Size: 12.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 |
83ce07ee871d476ba4b106f1fc46e4570b748c721f8ffc42a0a7ac9c85f947c5
|
|
| MD5 |
a6ea6ae701c5c2407f92a1b5f925ac63
|
|
| BLAKE2b-256 |
d77a68f58247f8aaf0865b6322b6014c8c8f53d1e1a4a91ce35597bc372869f3
|
Provenance
The following attestation bundles were made for shtuff-0.4.0.tar.gz:
Publisher:
ci.yaml on jfly/shtuff
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
shtuff-0.4.0.tar.gz -
Subject digest:
83ce07ee871d476ba4b106f1fc46e4570b748c721f8ffc42a0a7ac9c85f947c5 - Sigstore transparency entry: 322731805
- Sigstore integration time:
-
Permalink:
jfly/shtuff@075eadd5e8f4cea1b16cb17f8f73627db0cb9aff -
Branch / Tag:
refs/tags/v0.4.0 - Owner: https://github.com/jfly
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
ci.yaml@075eadd5e8f4cea1b16cb17f8f73627db0cb9aff -
Trigger Event:
push
-
Statement type:
File details
Details for the file shtuff-0.4.0-py3-none-any.whl.
File metadata
- Download URL: shtuff-0.4.0-py3-none-any.whl
- Upload date:
- Size: 5.7 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 |
c3acb12e7f4d3fc250049889357927731d22d1cffd06da9e1b399e69c8eeb0e6
|
|
| MD5 |
0157d312e03878e67b6e4944dbe90101
|
|
| BLAKE2b-256 |
4014452024f7f08d492d8578950aa367c61b68c22c43e954d6545c1f47f5ea1f
|
Provenance
The following attestation bundles were made for shtuff-0.4.0-py3-none-any.whl:
Publisher:
ci.yaml on jfly/shtuff
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
shtuff-0.4.0-py3-none-any.whl -
Subject digest:
c3acb12e7f4d3fc250049889357927731d22d1cffd06da9e1b399e69c8eeb0e6 - Sigstore transparency entry: 322731818
- Sigstore integration time:
-
Permalink:
jfly/shtuff@075eadd5e8f4cea1b16cb17f8f73627db0cb9aff -
Branch / Tag:
refs/tags/v0.4.0 - Owner: https://github.com/jfly
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
ci.yaml@075eadd5e8f4cea1b16cb17f8f73627db0cb9aff -
Trigger Event:
push
-
Statement type: