Zencore daemon application start.
Install
pip install zdas
Usage
import time
import threading
import signal
import zdas
stopflag = False
def main():
def on_exit(*args, **kwargs):
with open("backgroud.log", "a", encoding="utf-8") as fobj:
print("process got exit signal...", file=fobj)
print(args, file=fobj)
print(kwargs, file=fobj)
global stopflag
stopflag = True
signal.signal(signal.SIGTERM, on_exit)
signal.signal(signal.SIGINT, on_exit)
while not stopflag:
time.sleep(1)
print(time.time())
if __name__ == "__main__":
print("start background application...")
zdas.daemon_start(main, "background.pid", True)
Metadata
Release files for zdas 0.1.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 |
|---|---|---|---|---|
| zdas-0.1.1.tar.gz | 3.5 kB | Without provenance | Details for zdas-0.1.1.tar.gz |
Release files / zdas-0.1.1.tar.gz
| Download URL | zdas-0.1.1.tar.gz |
|---|---|
| Size | 3.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e275c9c363165ae7ff5a99697c44994c1c0494572a448f7fc035adc33bb1bf43
|
|
BLAKE2b-256 checksum How to use checksums |
ed68e22bae46b14a1fa4f15f40d05fecd73e5a71d09ff3d76d63e37d427af35b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for zdas 0.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.