Skip to main content

A library for launching, maintaining, and terminating a family of long-lived python child processes on Windows and Unices.

Project description

processfamily

A library for launching, maintaining, and terminating a family of long-lived python child processes on Windows and *nix.

The child processes can be launched from a console application or a Windows service / *nix daemon. A simple line-oriented text-based control protocol is implemented over stdin / stdout that allows the child process to be cleanly shutdown. For this reason, sys.stdin and sys.stdout are redirected to os.devnull in the child process. By default, the output of the child process sys.stderr stream will be echoed on the parent sys.stderr stream.

In order to avoid orphaned processes, the child processes are created in a way that will ensure that they are killed if the parent dies. On Windows this is implemented using a shared Job Object. If the parent process is not already in a Job, it will create a Job Object, and add itself in to that job before any of the child processes are created. For *nix this uses prctl PR_SET_PDEATHSIG setting.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

processfamily-0.8.tar.gz (41.4 kB view details)

Uploaded Source

Built Distribution

processfamily-0.8-py3-none-any.whl (38.6 kB view details)

Uploaded Python 3

File details

Details for the file processfamily-0.8.tar.gz.

File metadata

  • Download URL: processfamily-0.8.tar.gz
  • Upload date:
  • Size: 41.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3

File hashes

Hashes for processfamily-0.8.tar.gz
Algorithm Hash digest
SHA256 2273fdad050b997008fde3937ffe942c18938d181c9960cc7a2da9f6467f2db0
MD5 7732033b9627854124971ed0ecb3bc40
BLAKE2b-256 3469b368063ece7f4fd9a5a290b0a62ba6489cece86248d6fd6800e0520eadcd

See more details on using hashes here.

File details

Details for the file processfamily-0.8-py3-none-any.whl.

File metadata

  • Download URL: processfamily-0.8-py3-none-any.whl
  • Upload date:
  • Size: 38.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3

File hashes

Hashes for processfamily-0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 4b75011a0bbcd9d1199fef188097f82edc8cc52a40a4a7de3fa0a06740ce1a68
MD5 c77c5f8eaa76ec89df7fe977f6ed2e28
BLAKE2b-256 6a691b988dd0fa62204ca245bcb8923ecb1e7555d525a0a309aae56eae25d82e

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page