mytot


Namemytot JSON
Version 2024.12.2 PyPI version JSON
download
home_pageNone
SummaryTool of Tool
upload_time2024-12-10 08:46:00
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]
```
根据关键字杀掉相关的进程

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=J2L3E3K4D11E1B1G
; 默认收件人
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]\n```\n\u6839\u636e\u5173\u952e\u5b57\u6740\u6389\u76f8\u5173\u7684\u8fdb\u7a0b\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=J2L3E3K4D11E1B1G\n; \u9ed8\u8ba4\u6536\u4ef6\u4eba\ndefault_to=xxx@163.com\n```\n",
    "bugtrack_url": null,
    "license": "GPL",
    "summary": "Tool of Tool",
    "version": "2024.12.2",
    "project_urls": null,
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "691c30eb60e4ec6dfef3d7c137c50b8013140d7790935b306316436f41f3fa7a",
                "md5": "4ec4bb82cefe90f72e1f2e4b9ed7449c",
                "sha256": "3d3362f3791ba027ca1b3f6154c7cf5a9bffb2669ba288cbfbe9fc8122c44977"
            },
            "downloads": -1,
            "filename": "mytot-2024.12.2-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "4ec4bb82cefe90f72e1f2e4b9ed7449c",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 31215,
            "upload_time": "2024-12-10T08:46:00",
            "upload_time_iso_8601": "2024-12-10T08:46:00.697451Z",
            "url": "https://files.pythonhosted.org/packages/69/1c/30eb60e4ec6dfef3d7c137c50b8013140d7790935b306316436f41f3fa7a/mytot-2024.12.2-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-12-10 08:46:00",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "mytot"
}
        
Elapsed time: 0.99051s