Skip to main content

tmux through python

Project description

tpy

Installation

pip install tpy

Usage

usage: tpy [-h] [-s SESSION] [-w WINDOW] [-r] {cmd,cmd_prev,pytest,python} ...

Runs command in tmux

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

optional arguments:
  -h, --help            Usage info
  -s SESSION, --session SESSION
                        Session to use
  -w WINDOW, --window WINDOW
                        Window to use
  -r, --reset           Resets window before execution, killing running
                        processes


usage: tpy cmd command

Runs arbitrary command

positional arguments:
  command  Command to execute



usage: tpy cmd_prev [-t TIMES_UP]

Runs previous command

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



usage: tpy pytest [--executable EXECUTABLE] [-k KEYWORD] [-m MARK] [--pdb]
                  [--ipdb] [-mf MAXFAIL]
                  file_or_dir

Runs pytest on file or directory

positional arguments:
  file_or_dir

optional arguments:
  --executable EXECUTABLE
                        pytest executable
  -k KEYWORD, --keyword KEYWORD
                        Only run tests matching given substring expression
  -m MARK, --mark MARK  Only run tests matching mark expression
  --pdb                 Enables pdb
  --ipdb                Enables ipdb
  -mf MAXFAIL, --maxfail MAXFAIL
                        Maximum failures



usage: tpy python [--executable EXECUTABLE] [--pdb] [--ipdb] [-i] file

Executes file with python

positional arguments:
  file

optional arguments:
  --executable EXECUTABLE
                        Python executable
  --pdb                 Enables pdb
  --ipdb                Enables ipdb
  -i, --interactive     Enables interactive mode

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.1.2.tar.gz (5.1 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 2 Python 3

File details

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

File metadata

  • Download URL: tpy-0.1.2.tar.gz
  • Upload date:
  • Size: 5.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4

File hashes

Hashes for tpy-0.1.2.tar.gz
Algorithm Hash digest
SHA256 ef483e5359a7400106a83e99630317e790edf0fb47c0a2c2332644db16b5656a
MD5 ee8ccf2b6ce9c67a22f98f0b1634006d
BLAKE2b-256 98bdbfea52b78e1f678ce48fa68e96dbfefd35fe4bea03f5dec33b208f8c8ba9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tpy-0.1.2-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.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4

File hashes

Hashes for tpy-0.1.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 804e1a0b1d4b42874d755a1b376e1130218487c7b3393418255157a5c6e3fa2d
MD5 681fd828553516114e2bfdf5ae905eba
BLAKE2b-256 0e46b952ee47907af96899e2956e17396d832c8e4e8e40a735b04f96648593d4

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