k3daemonize
It supplies a command line interface API to start/stop/restart a daemon.
k3daemonize is a component of pykit3 project: a python3 toolkit set.
Help to create daemon process. It supplies a command line interface API to start/stop/restart a daemon.
daemonize identifies a daemon by the pid file.
Thus two processes those are set up with the same pid file
can not run at the same time.
Install
pip install k3daemonize
Synopsis
import time
import k3daemonize
def run():
for i in range(100):
print(i)
time.sleep(1)
# python foo.py start
# python foo.py stop
# python foo.py restart
if __name__ == "__main__":
# there is at most only one of several processes with the same pid path
# that can run.
k3daemonize.daemonize_cli(run, "/var/run/pid")
Author
Zhang Yanpo (张炎泼) drdr.xp@gmail.com
Copyright and License
The MIT License (MIT)
Copyright (c) 2015 Zhang Yanpo (张炎泼) drdr.xp@gmail.com
Metadata
Release files for k3daemonize 0.1.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| k3daemonize-0.1.7.tar.gz | 8.2 kB | Without provenance | Details for k3daemonize-0.1.7.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| k3daemonize-0.1.7-py3-none-any.whl | Python 3 | none | any | Details for k3daemonize-0.1.7-py3-none-any.whl |
Total release size: 14.9 kB
Release files / k3daemonize-0.1.7.tar.gz
| Download URL | k3daemonize-0.1.7.tar.gz |
|---|---|
| Size | 8.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3e4172446f857ddc8b06265ffc01b4528ccdea00c73d12f553fc97e88a7686bd
|
|
BLAKE2b-256 checksum How to use checksums |
f8f3ccf248ac4c744cab94a81672feb10d72e0761b70a12e1a4385c3147c8101
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.8
|
Release files / k3daemonize-0.1.7-py3-none-any.whl
| Download URL | k3daemonize-0.1.7-py3-none-any.whl |
|---|---|
| Size | 6.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e05c30eb99b364eb6f62caf5e269793d6aaa4bd46c8faafd70780166e214ab07
|
|
BLAKE2b-256 checksum How to use checksums |
0f729342e872a578150fdb66a7ad5c7950e57c34844dfb17d42daf292fe4317d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.8
|
Security for k3daemonize 0.1.7
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.