帮助自动化项目。
hed-utils的Python项目详细描述
用于(主要是)自动化项目的Helper python实用程序
说明
要求:
- python >= 3.6.5
依赖关系:
- bs4
- lxml
- requests
- selenium
- psutil
- tabulate
- xlrd
- xlwt
- more_itertools
- pyminizip
- pytz
- tzlocal
- python-dotenv
- gspread
- oauth2client
安装/更新:
pip install -U –force hed_utils
安装cli绑定:
rkill - recursively kills target processes by first killing their children (useful for Windows)
By default the command is executed in ‘dry mode’ (not actually killing the victims, but only print them)
To actually perform the kills add -y or –yes as last argument.
安装Docker-如果当前操作系统受支持(当前只有ubuntu),则执行Docker安装。
Once called it will ask for console confirmation before proceeding.
cli示例:
- Kill all processes with given name, ignoring casing (dry run)
- rkill -n process_name -i
- Kill all processes by name pattern (dry run)
- rkill -p name_regex_pattern
- Kill process and it’s children by pid (performs the kill, since -y passed )
- rkill -pid process_pid -y
- Kill all chromedriver processes and the browser instances they started (performs the kill)
- rkill -p .*chromedriver.* -y