uc_daemon
A set of classes and functions for demonizing a process and related tools.
It is part of the Unicon project.
Usage:
Install
pip install --user uc-daemon
and use
import uc_daemon
Functions:
daemonize()
Become a daemon. To base process returns daemonized process id on successful and less than zero on fails. To daemonized process returns zero.
redirectio(handle)
Redirects standart descriptors to specified file handle.
Global constants
LOGGER
You may override this constant to manage debugging messages.
Example:
import os
import sys
import uc_daemon
pid = uc_daemon.daemonize()
if (pid == 0):
print("I'm daemon! My pid is %d" % os.getpid())
else:
print("Daemon started with pid %d and my pid is %d" % (pid, os.getpid()))
Metadata
Release files for uc-daemon 0.0.1
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 |
|---|---|---|---|---|
| uc_daemon-0.0.1.tar.gz | 2.8 kB | Without provenance | Details for uc_daemon-0.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| uc_daemon-0.0.1-py3-none-any.whl | Python 3 | none | any | Details for uc_daemon-0.0.1-py3-none-any.whl |
Total release size: 17.9 kB
Release files / uc_daemon-0.0.1.tar.gz
| Download URL | uc_daemon-0.0.1.tar.gz |
|---|---|
| Size | 2.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
02e640bdf81e8eeb81b67e6340f81b1c9366cfe2816b99b5042abdf7f30f4a55
|
|
BLAKE2b-256 checksum How to use checksums |
3a11ca446a1806bce17bff3de67b12655c880dd23868b465ad2881854c405e94
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.7
|
Release files / uc_daemon-0.0.1-py3-none-any.whl
| Download URL | uc_daemon-0.0.1-py3-none-any.whl |
|---|---|
| Size | 15.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ae535ad00dba406612287e281ef7e32e1432cfb925a79f5488ac827fd27293ff
|
|
BLAKE2b-256 checksum How to use checksums |
cbb7d2958d237dee8cf249117e8522cb6589e786c5a64a5ba8a97c40d435f5f0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.7
|
Security for uc-daemon 0.0.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.