Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pwwang/pyppl_runcmd
Allowing to run local command before and after each process for PyPPL
https://github.com/pwwang/pyppl_runcmd
Last synced: 14 days ago
JSON representation
Allowing to run local command before and after each process for PyPPL
- Host: GitHub
- URL: https://github.com/pwwang/pyppl_runcmd
- Owner: pwwang
- License: mit
- Created: 2019-12-30T16:53:38.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2020-06-06T04:54:47.000Z (over 4 years ago)
- Last Synced: 2024-12-10T04:27:05.705Z (24 days ago)
- Language: Python
- Size: 22.5 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# pyppl_runcmd
Allowing to run local command before and after each process for PyPPL
## Installation
```shell
pip install pyppl_runcmd
```## Usage
```python
pXXX.config.runcmd_pre = "bedtools --version"
# if bedtools is not installed, error will be raised.
pXXX.config.runcmd_post = "# some cleanup code"
```Note: This is different from setting prescript or postscript in runner configurations:
1. These commands are only running locally. The commands set in runner configuration are running with the given runner.
2. These commands are only running by each process. The commands set in runner configuration are running by each job.