Skip to main content

shtuff Deploy to PyPI

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!

Metadata

Release files for shtuff 0.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for shtuff 0.4.0
File Size Uploaded
shtuff-0.4.0.tar.gz 12.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for shtuff 0.4.0
File Interpreter ABI Platform
shtuff-0.4.0-py3-none-any.whl Python 3 none any Details

Total release size: 17.9 kB

Release files / shtuff-0.4.0.tar.gz

Download URL shtuff-0.4.0.tar.gz
Size 12.2 kB
Tags Source
SHA-256 checksum
How to use checksums
83ce07ee871d476ba4b106f1fc46e4570b748c721f8ffc42a0a7ac9c85f947c5
BLAKE2b-256 checksum
How to use checksums
d77a68f58247f8aaf0865b6322b6014c8c8f53d1e1a4a91ce35597bc372869f3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 29, 2025.

Transparency log

Release files / shtuff-0.4.0-py3-none-any.whl

Download URL shtuff-0.4.0-py3-none-any.whl
Size 5.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c3acb12e7f4d3fc250049889357927731d22d1cffd06da9e1b399e69c8eeb0e6
BLAKE2b-256 checksum
How to use checksums
4014452024f7f08d492d8578950aa367c61b68c22c43e954d6545c1f47f5ea1f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 29, 2025.

Transparency log

Release history Release notifications | RSS feed

This release

0.4.0 This release

2 release files

0.3.5

2 release files

0.3.3

2 release files

0.3.2

2 release files

0.3.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page