Skip to main content

Pyexec allows to setup signal handler, which will reload current process. This functionality might be used to restart application, e.g. when the code’s been changed, by sending an appropriate signal to the python process.

Exemplary usage:

import os
import pyexec
import signal
import sys

def handler():
    sys.stderr.write('Reloading process!\n')
    return sys.argv + ['reloaded']

sys.stderr.write('[%d]: argv: %r\n' % (os.getpid(), sys.argv))
pyexec.install(signal.SIGUSR1, handler)
signal.pause()

The output from the python process after sending the USR1 signal twice:

$ python example.py
[20785]: argv: ['example.py']
Reloading process!
[20785]: argv: ['example.py', 'reloaded']
Reloading process!
[20785]: argv: ['example.py', 'reloaded', 'reloaded']

Metadata

Release files for pyexec 1.1.1

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

Source distribution (sdist)

Source distribution for pyexec 1.1.1
File Size Uploaded Provenance Actions
pyexec-1.1.1.tar.gz 2.2 kB Without provenance Details for pyexec-1.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pyexec 1.1.1
File Interpreter ABI Platform Actions
pyexec-1.1.1-py2.py3-none-any.whl Python 3, Python 2 none any Details for pyexec-1.1.1-py2.py3-none-any.whl

Total release size: 5.8 kB

Release files / pyexec-1.1.1.tar.gz

Download URL pyexec-1.1.1.tar.gz
Size 2.2 kB
Tags Source
SHA-256 checksum
How to use checksums
96ce6e94ab0a0790c088189c931dc1efa8e0214a3e4de0ca622986f97387cf9c
BLAKE2b-256 checksum
How to use checksums
133e1ebbfd2082fa71ea0bd18f73eed3f715261a6a6d581005d89f0389407cfd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / pyexec-1.1.1-py2.py3-none-any.whl

Download URL pyexec-1.1.1-py2.py3-none-any.whl
Size 3.6 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
a7a3d62775fd1272d78e63075928f89ef2d8460d99e641670c013e9efc810f37
BLAKE2b-256 checksum
How to use checksums
531df544585b8da26e1736e9736d6a0341542ff9bdbd5a9a89cc3ce3bc75d70b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for pyexec 1.1.1

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

1.1.1 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