This directory contains standalone batch files that provide Python aliases and functions converted from zsh to Windows batch format.
- The
_bashrc.cmdfile automatically adds this directory to your PATH - All Python aliases are defined using
doskeycommands - Complex functions are implemented as standalone
.batfiles
p3→python3python→p3(alias)pyp→python3 -m pippis→pip show
pir→python-install-requirements.bat(install from requirements.txt)pirm→python-install-zowe.bat(install zowe client)pyr→pip install -r requirements.txt
penv→python-env.bat(environment management)penv- Create/activate local environmentpenv no- Deactivate environmentpenv api- Activate api environment
tp→python3 test.pytpa→python3 app.pypyt→pytest -stpu→python-test-unit.bat(pytest -s tests/unit/)tpi→python-test-integration.bat(pytest -s tests/integration/)
After loading _bashrc.cmd, you can use these aliases from any directory:
p3 script.py # python3 script.py
pyp install package # python3 -m pip install package
pir # install requirements.txt
penv # create/activate local environment
penv api # activate api environment
penv no # deactivate environment
tp # python3 test.py
tpa # python3 app.py
pyt # pytest -s
pyt tests/test_file.py::TestClass::test_method # run specific test
tpu # pytest -s tests/unit/
tpi # pytest -s tests/integration/The penv function provides flexible Python environment management:
- No arguments: Creates
env/directory if it doesn't exist and activates the virtual environment no: Deactivates the current virtual environmentapi: Activates the API environment at~/znp/api/(customize this path inpython-env.bat)- Other arguments: Same as no arguments (creates/activates local environment)
pyt tests/unit/test_zowe_core.py::TestZosmfProfileManager::test_autodiscovery_and_base_profile_loadingtpu # Run all unit tests
tpi # Run all integration testspython-env.bat- Python environment managementpython-install-requirements.bat- Install from requirements.txtpython-install-zowe.bat- Install zowe clientpython-test-unit.bat- Run unit testspython-test-integration.bat- Run integration teststest-python-aliases.bat- Test script to verify setup