TimeoutProcess provides the ability to run a process with a specified time out. You may find it useful when trying to run a process, which may not terminate in a reasonably obvious fashion. Obvious examples would be typical GUI applications which run till they are explicitly closed.
Typical usage of TimeoutProcess looks like this:
#!/usr/bin/env python import timeoutprocess timeoutprocess.TimeoutProcess(['notepad.exe', r'c:\\myfile.txt'], 60)
The first argument to TimeoutProcess take the form of the arguments to subprocess.Popen(), which is a list containing the program name, and any additional arguments.
The second argument is the time, in seconds, to allow the process to run.
Metadata
Release files for TimeoutProcess 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| TimeoutProcess-0.1.0.zip | 2.9 kB | Details |
Release files / TimeoutProcess-0.1.0.zip
| Download URL | TimeoutProcess-0.1.0.zip |
|---|---|
| Size | 2.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0b6ecb7b82aaf1e4e693a1eca53a611c7e7bc264e2f0590834302b126c1f5af9
|
|
BLAKE2b-256 checksum How to use checksums |
cbdf8824fce85132f13055e732743930e04b9fa5b5d9f1a42b0cbc30f2f6bc13
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |