mytot


Namemytot JSON
Version 2025.8.11 PyPI version JSON
download
home_pageNone
SummaryTool of Tool
upload_time2025-08-17 02:00:02
maintainerNone
docs_urlNone
authorXin-Xin MA
requires_pythonNone
licenseGPL
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # mytot
My tool of tool

## INSTLL
```bash
pip3 install mytot -i https://pypi.python.org/simple --upgrade
```


TASK
---------
```bash
TASK [script_file]
```
跑一个程序,如果程序已经在运行,则不执行;
输出的日志为~/.cache/task_log/out.[date]
* 如果script_file以".sh"结尾,则使用`bash script_file`进行执行
* 如果script_file以".py"结尾,则使用`python script_file`进行执行

RUN
--------
```bash
RUN [script_file]
```
跑一个程序,并将其放置后台,输入的日志为./log/[script_file].run

KILL
----------
```bash
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
---------------
```bash
MAIL <email address> -s [subject] -a [attachments1] <attachment2>
```
需要配置账户的信息,配置文件为~/.config/mytot/config.ini。示例
```ini
[email]
smtp_server=smtp.163.com
; 用户名
username=xxx@163.com
; 登陆密码或授权码
password=J4R3E3D4F31E1B1G
; 默认收件人
default_to=xxx@163.com
```

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "mytot",
    "maintainer": null,
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": null,
    "keywords": null,
    "author": "Xin-Xin MA",
    "author_email": null,
    "download_url": null,
    "platform": null,
    "description": "# mytot\nMy tool of tool\n\n## INSTLL\n```bash\npip3 install mytot -i https://pypi.python.org/simple --upgrade\n```\n\n\nTASK\n---------\n```bash\nTASK [script_file]\n```\n\u8dd1\u4e00\u4e2a\u7a0b\u5e8f\uff0c\u5982\u679c\u7a0b\u5e8f\u5df2\u7ecf\u5728\u8fd0\u884c\uff0c\u5219\u4e0d\u6267\u884c;\n\u8f93\u51fa\u7684\u65e5\u5fd7\u4e3a~/.cache/task_log/out.[date]\n* \u5982\u679cscript_file\u4ee5\".sh\"\u7ed3\u5c3e\uff0c\u5219\u4f7f\u7528`bash script_file`\u8fdb\u884c\u6267\u884c\n* \u5982\u679cscript_file\u4ee5\".py\"\u7ed3\u5c3e\uff0c\u5219\u4f7f\u7528`python script_file`\u8fdb\u884c\u6267\u884c\n\nRUN\n--------\n```bash\nRUN [script_file]\n```\n\u8dd1\u4e00\u4e2a\u7a0b\u5e8f\uff0c\u5e76\u5c06\u5176\u653e\u7f6e\u540e\u53f0\uff0c\u8f93\u5165\u7684\u65e5\u5fd7\u4e3a./log/[script_file].run\n\nKILL\n----------\n```bash\nKILL [key word] [-9 or -15] [-f]\n```\n\u6839\u636e\u5173\u952e\u5b57\u6740\u6389\u76f8\u5173\u7684\u8fdb\u7a0b\n* `-f` \u6b64\u65f6\"key word\"\u662f\u4e00\u4e2abash\u6216python\u6587\u4ef6\uff0c\u4f1a\u6839\u636e\u6587\u4ef6\u540d\u7edd\u5bf9\u8def\u5f84\u8fdb\u884c\u5339\u914d\u3002\u4f8b\u5982\u5b58\u5728\u8fdb\u884c\n\"python3 /.../a/long_task.py\"\u548c\"python3 /.../b/long_task.py\"\uff0c\u5728\u5de5\u4f5c\u76ee\u5f55\u4e0bb\u6267\u884c`kill -f long_task.py`\uff0c\u4f1a\u6740\u6389\"python3 /.../b/long_task.py\"\n\u4f46\u662f\u4e0d\u4f1a\u6740\u6389\"python3 /.../a/long_task.py\"\n\n\nMAIL\n---------------\n```bash\nMAIL <email address> -s [subject] -a [attachments1] <attachment2>\n```\n\u9700\u8981\u914d\u7f6e\u8d26\u6237\u7684\u4fe1\u606f\uff0c\u914d\u7f6e\u6587\u4ef6\u4e3a~/.config/mytot/config.ini\u3002\u793a\u4f8b\n```ini\n[email]\nsmtp_server=smtp.163.com\n; \u7528\u6237\u540d\nusername=xxx@163.com\n; \u767b\u9646\u5bc6\u7801\u6216\u6388\u6743\u7801\npassword=J4R3E3D4F31E1B1G\n; \u9ed8\u8ba4\u6536\u4ef6\u4eba\ndefault_to=xxx@163.com\n```\n",
    "bugtrack_url": null,
    "license": "GPL",
    "summary": "Tool of Tool",
    "version": "2025.8.11",
    "project_urls": null,
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "e32e5cb4b770ff384d95c0655bc62c1076838deb6c4c1b2e973295af8133c7b2",
                "md5": "1559cc44f55ed173abb7f1fdd57e214c",
                "sha256": "546c1ee056aa2dcee89705cc1822944995a5bbc64a801946a834315ac03a0d84"
            },
            "downloads": -1,
            "filename": "mytot-2025.8.11-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "1559cc44f55ed173abb7f1fdd57e214c",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 31936,
            "upload_time": "2025-08-17T02:00:02",
            "upload_time_iso_8601": "2025-08-17T02:00:02.892755Z",
            "url": "https://files.pythonhosted.org/packages/e3/2e/5cb4b770ff384d95c0655bc62c1076838deb6c4c1b2e973295af8133c7b2/mytot-2025.8.11-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-08-17 02:00:02",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "mytot"
}
        
Elapsed time: 0.89992s