Skip to main content

Kills python + all subprocesses, restarts with the same args, Windows only, works with pyinstaller

pip install babyonemoretime

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

Metadata

Release files for babyonemoretime 0.10

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for babyonemoretime 0.10
File Size Uploaded Provenance Actions
babyonemoretime-0.10.tar.gz 20.8 kB Without provenance Details for babyonemoretime-0.10.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for babyonemoretime 0.10
File Interpreter ABI Platform Actions
babyonemoretime-0.10-py3-none-any.whl Python 3 none any Details for babyonemoretime-0.10-py3-none-any.whl

Total release size: 42.2 kB

Release files / babyonemoretime-0.10.tar.gz

Download URL babyonemoretime-0.10.tar.gz
Size 20.8 kB
Tags Source
SHA-256 checksum
How to use checksums
c1edf6bd58e4b30775984a717a36998dbf5428d2ca79a726ede8cdc98c3fd70d
BLAKE2b-256 checksum
How to use checksums
8d400a3df516c412c3165af1ce429f2e52617bd11aa7951cfd5aa20376a58486
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.13

Release files / babyonemoretime-0.10-py3-none-any.whl

Download URL babyonemoretime-0.10-py3-none-any.whl
Size 21.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a54a7c9d3a0d83c33d284dfefd4c3a3f7f22a8ce3e741220e7655e67fb4d3d58
BLAKE2b-256 checksum
How to use checksums
1ad8f2f97badf6283d60eb8d8b055cccc963b8b628ba0b4beffdc57001126a6b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.13

Security for babyonemoretime 0.10

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.

Release history Release notifications | RSS feed

This release

0.10 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page