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

Uploaded Source

Built Distribution

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

Uploaded Python 2 Python 3

File details

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

File metadata

  • Download URL: tpy-0.1.3.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.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.1.3.tar.gz
Algorithm Hash digest
SHA256 865afc875584a5b8edd5715aeb3de25abb5c316165c5e3b56800292723be6ffb
MD5 6dddff6b3ac4646f9cc1182e4772a6cf
BLAKE2b-256 2ec232e29232ccf4154a3858d6a8863d1055095f36a3a0bc4a995865f3a5d34d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tpy-0.1.3-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.1.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 104e98443cfceaa3a6aff28d745696966d51eea0ab08ab78468a1ea8e0bb33ec
MD5 3132dae8a2a88f55f7f10ea654ecbd7b
BLAKE2b-256 881e52b666f2acd9d7e4fc6664fc0a8be5cfbe76efb1095002bb1ca2610b05f8

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