NAME
DaemonLite is a library for writing system daemons in Python. It is distributed under MIT license.
SYNOPSIS
from DaemonLite import DaemonLite
class Staff(DaemonLite) :
def run(self) :
# Do something
staff = Staff('/var/staff/staff.pid')
staff.start()
Actions
start() - starts the daemon (creates PID and daemonizes). stop() - stops the daemon (stops the child process and removes the PID). restart() - does stop() then start().
Foreground
This is useful for debugging because you can start the code without making it a daemon. The running script then depends on the open shell like any normal Python script.
To do this, just call the run() method directly.
staff.run()
DESCRIPTION
This is a Python class that will daemonize your Python script so it can continue running in the background. It works on Unix, Linux and OS X, creates a PID file and has standard commands (start, stop, restart) + a foreground mode.
Metadata
Release files for DaemonLite 0.0.2
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 |
|---|---|---|---|---|
| DaemonLite-0.0.2.tar.gz | 3.2 kB | Without provenance | Details for DaemonLite-0.0.2.tar.gz |
Release files / DaemonLite-0.0.2.tar.gz
| Download URL | DaemonLite-0.0.2.tar.gz |
|---|---|
| Size | 3.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
de1fbdf8837acbe1009106aae051d4f3add978ae055f35313952a63ccac31088
|
|
BLAKE2b-256 checksum How to use checksums |
b7288cae8f6f1772f8d979dad148f64e3db2d2669751b11f2fa7bd9c63ff0f7e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for DaemonLite 0.0.2
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.