Skip to main content

tmux through python

Project description

tpy

Installation

pip install tpy

Usage

See tpy --help:

usage: tpy [--session SESSION] [--window WINDOW] [--reset-window]
           [--reset-pane] [--dir DIR] [--dry] [-h]
           {cmd,again,pytest,python} ...

Runs commands in tmux.

positional arguments:
  {cmd,again,pytest,python}

optional arguments:
  --session SESSION     Session to use
  --window WINDOW       Window to use
  --reset-window        Resets window before execution
  --reset-pane          Resets pane before execution
  --dir DIR             Changes into directory for execution
  --dry                 Will send but not execute commands
  -h, --help            Usage info


usage: tpy cmd command

Runs arbitrary command.

positional arguments:
  command  Command to execute



usage: tpy again [-tu TIMES_UP]

Runs previous command again.

optional arguments:
  -tu TIMES_UP, --times-up TIMES_UP
                        Number of times to press cursor up



usage: tpy pytest [-e EXECUTABLE] [--ipdb] file_or_dir

Runs pytest on file or directory. Any additional arguments are passed on.

positional arguments:
  file_or_dir

optional arguments:
  -e EXECUTABLE, --executable EXECUTABLE
                        pytest executable
  --ipdb                Enables ipdb



usage: tpy python [-e EXECUTABLE] [--pdb] [--ipdb] file

Executes file with python. Any additional arguments are passed on.

positional arguments:
  file

optional arguments:
  -e EXECUTABLE, --executable EXECUTABLE
                        Python executable
  --pdb                 Enables pdb
  --ipdb                Enables ipdb

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

tpy-0.2.0.tar.gz (5.2 kB view details)

Uploaded Source

Built Distribution

tpy-0.2.0-py2.py3-none-any.whl (5.4 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file tpy-0.2.0.tar.gz.

File metadata

  • Download URL: tpy-0.2.0.tar.gz
  • Upload date:
  • Size: 5.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/45.2.0.post20200210 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.7

File hashes

Hashes for tpy-0.2.0.tar.gz
Algorithm Hash digest
SHA256 106d8fab79e5272d4172a28fd85bb16ff9d5e2310e6d778e6c336612e39229f5
MD5 2c8ce9a99721b037cd1a6f319702ce54
BLAKE2b-256 8657734c6a0963bcc04bbf97a055a728a9f77ee54a8aeab58955a64120644a4b

See more details on using hashes here.

File details

Details for the file tpy-0.2.0-py2.py3-none-any.whl.

File metadata

  • Download URL: tpy-0.2.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 5.4 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/45.2.0.post20200210 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.7

File hashes

Hashes for tpy-0.2.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 1311725914e03612c36d80fadad99c958d5017ca416ace5467ad0d851e93cebb
MD5 e38d5d5faa798f707f7a654923b12fe6
BLAKE2b-256 328936f53e07ddd8031f9ec8dc0abf1f2db73f3f883ecd46ab646b8b7e902a46

See more details on using hashes here.

Supported by

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