mytot
My tool of tool
INSTLL
pip3 install mytot -i https://pypi.python.org/simple --upgrade
TASK
TASK [script_file]
跑一个程序,如果程序已经在运行,则不执行; 输出的日志为~/.cache/task_log/out.[date]
- 如果script_file以".sh"结尾,则使用
bash script_file进行执行 - 如果script_file以".py"结尾,则使用
python script_file进行执行
RUN
RUN [script_file]
跑一个程序,并将其放置后台,输入的日志为./log/[script_file].run
KILL
KILL [key word] [-9 or -15] [-f]
根据关键字杀掉相关的进程
-f此时"key word"是一个bash或python文件,会根据文件名绝对路径进行匹配。例如存在进行 "python3 /.../a/long_task.py"和"python3 /.../b/long_task.py",在工作目录下b执行kill -f long_task.py,会杀掉"python3 /.../b/long_task.py" 但是不会杀掉"python3 /.../a/long_task.py"
MAIL <email address> -s [subject] -a [attachments1] <attachment2>
需要配置账户的信息,配置文件为~/.config/mytot/config.ini。示例
[email]
smtp_server=smtp.163.com
; 用户名
username=xxx@163.com
; 登陆密码或授权码
password=J4R3E3D4F31E1B1G
; 默认收件人
default_to=xxx@163.com
Metadata
Release files for mytot 2026.9.9
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mytot-2026.9.9-py3-none-any.whl | Python 3 | none | any | Details for mytot-2026.9.9-py3-none-any.whl |
Release files / mytot-2026.9.9-py3-none-any.whl
| Download URL | mytot-2026.9.9-py3-none-any.whl |
|---|---|
| Size | 66.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e70e58099251bd0eb3c9b0bd20c933cc9f747487111130ce3e01987cda6b08a6
|
|
BLAKE2b-256 checksum How to use checksums |
1d7c758b49f7c81d13aa0f7f9619993448dfd330a6f362afe2fc3e6be85eedf2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.9
|
Security for mytot 2026.9.9
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.