babyonemoretime


Namebabyonemoretime JSON
Version 0.10 PyPI version JSON
download
home_pagehttps://github.com/hansalemaos/babyonemoretime
SummaryKills python + all subprocesses, restarts with the same args, Windows only, works with pyinstaller
upload_time2023-03-22 02:08:20
maintainer
docs_urlNone
authorJohannes Fischer
requires_python
licenseMIT
keywords restart python execl osexecl
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            
# Kills python + all subprocesses, restarts with the same args, Windows only, works with pyinstaller



### pip install babyonemoretime



```python



from babyonemoretime import restart_everything

from time import sleep

import subprocess

import sys



sleep(4)

if sys.argv[1] == "n":

    subprocess.Popen("notepad.exe")

else:

    subprocess.Popen("word.exe")



sleep(4)

restart_everything(pyfile=__file__, sysarv=sys.argv, restart=False)  # kills everything

restart_everything(pyfile=__file__, sysarv=sys.argv, restart=True) # kills everything and restarts









# python.exe resa.py n



```


            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/hansalemaos/babyonemoretime",
    "name": "babyonemoretime",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "restart,python,execl,osexecl",
    "author": "Johannes Fischer",
    "author_email": "<aulasparticularesdealemaosp@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/8d/40/0a3df516c412c3165af1ce429f2e52617bd11aa7951cfd5aa20376a58486/babyonemoretime-0.10.tar.gz",
    "platform": null,
    "description": "\n# Kills python + all subprocesses, restarts with the same args, Windows only, works with pyinstaller\n\n\n\n### pip install babyonemoretime\n\n\n\n```python\n\n\n\nfrom babyonemoretime import restart_everything\n\nfrom time import sleep\n\nimport subprocess\n\nimport sys\n\n\n\nsleep(4)\n\nif sys.argv[1] == \"n\":\n\n    subprocess.Popen(\"notepad.exe\")\n\nelse:\n\n    subprocess.Popen(\"word.exe\")\n\n\n\nsleep(4)\n\nrestart_everything(pyfile=__file__, sysarv=sys.argv, restart=False)  # kills everything\n\nrestart_everything(pyfile=__file__, sysarv=sys.argv, restart=True) # kills everything and restarts\n\n\n\n\n\n\n\n\n\n# python.exe resa.py n\n\n\n\n```\n\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Kills python + all subprocesses, restarts with the same args, Windows only, works with pyinstaller",
    "version": "0.10",
    "split_keywords": [
        "restart",
        "python",
        "execl",
        "osexecl"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "1ad8f2f97badf6283d60eb8d8b055cccc963b8b628ba0b4beffdc57001126a6b",
                "md5": "bc38c5cea45ad86c506babf298b47dd4",
                "sha256": "a54a7c9d3a0d83c33d284dfefd4c3a3f7f22a8ce3e741220e7655e67fb4d3d58"
            },
            "downloads": -1,
            "filename": "babyonemoretime-0.10-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "bc38c5cea45ad86c506babf298b47dd4",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 21436,
            "upload_time": "2023-03-22T02:08:19",
            "upload_time_iso_8601": "2023-03-22T02:08:19.200709Z",
            "url": "https://files.pythonhosted.org/packages/1a/d8/f2f97badf6283d60eb8d8b055cccc963b8b628ba0b4beffdc57001126a6b/babyonemoretime-0.10-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "8d400a3df516c412c3165af1ce429f2e52617bd11aa7951cfd5aa20376a58486",
                "md5": "9b15712f06f4234972758b8f5b4eac3e",
                "sha256": "c1edf6bd58e4b30775984a717a36998dbf5428d2ca79a726ede8cdc98c3fd70d"
            },
            "downloads": -1,
            "filename": "babyonemoretime-0.10.tar.gz",
            "has_sig": false,
            "md5_digest": "9b15712f06f4234972758b8f5b4eac3e",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 20804,
            "upload_time": "2023-03-22T02:08:20",
            "upload_time_iso_8601": "2023-03-22T02:08:20.616935Z",
            "url": "https://files.pythonhosted.org/packages/8d/40/0a3df516c412c3165af1ce429f2e52617bd11aa7951cfd5aa20376a58486/babyonemoretime-0.10.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-03-22 02:08:20",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": "hansalemaos",
    "github_project": "babyonemoretime",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "requirements": [],
    "lcname": "babyonemoretime"
}
        
Elapsed time: 0.10115s