Skip to main content

It's like screen's stuff command, without screen

Project description

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!

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

shtuff-0.4.0.tar.gz (12.2 kB view details)

Uploaded Source

Built Distribution

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

shtuff-0.4.0-py3-none-any.whl (5.7 kB view details)

Uploaded Python 3

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

Hashes for shtuff-0.4.0.tar.gz
Algorithm Hash digest
SHA256 83ce07ee871d476ba4b106f1fc46e4570b748c721f8ffc42a0a7ac9c85f947c5
MD5 a6ea6ae701c5c2407f92a1b5f925ac63
BLAKE2b-256 d77a68f58247f8aaf0865b6322b6014c8c8f53d1e1a4a91ce35597bc372869f3

See more details on using hashes here.

Provenance

The following attestation bundles were made for shtuff-0.4.0.tar.gz:

Publisher: ci.yaml on jfly/shtuff

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for shtuff-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c3acb12e7f4d3fc250049889357927731d22d1cffd06da9e1b399e69c8eeb0e6
MD5 0157d312e03878e67b6e4944dbe90101
BLAKE2b-256 4014452024f7f08d492d8578950aa367c61b68c22c43e954d6545c1f47f5ea1f

See more details on using hashes here.

Provenance

The following attestation bundles were made for shtuff-0.4.0-py3-none-any.whl:

Publisher: ci.yaml on jfly/shtuff

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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