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
Release history Release notifications | RSS feed
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.1.tar.gz
(5.1 kB
view details)
Built Distribution
File details
Details for the file tpy-0.2.1.tar.gz
.
File metadata
- Download URL: tpy-0.2.1.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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7f5c9076a695b7c5f035da67bc2d3df43853b14ac142893cbcc6af44e41daf19 |
|
MD5 | 87d8e9aeb79ad34a7496824f58534540 |
|
BLAKE2b-256 | d5290b0f303c573afd52155b6b153e5315f8d01c5441dfe0245be27a621ec876 |
File details
Details for the file tpy-0.2.1-py2.py3-none-any.whl
.
File metadata
- Download URL: tpy-0.2.1-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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7a7d5dfba0604c53f733cbacf2dae4cbecfbf4d920d05afcea5dd46509c7177b |
|
MD5 | 09d9cd08c0cb6800bdef0b16967a283f |
|
BLAKE2b-256 | c62a66b412b31d07ebbfb01be3c558e7fe48a33318a35af1d8c5e249fbe2c5be |