Skip to main content

python daemon tool.

Project description

via pip

pip3 install apdaemon

example:

from apdaemon.daemon import daemon

@daemon(service="maind")
def main():
    import time
    while True:
        print("hello world")
        time.sleep(3)

if __name__ == '__main__':
    main()

run command: python3 daemon.py [start[default]|status|stop|restart]

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

apdaemon-0.2.3.tar.gz (2.7 kB view details)

Uploaded Source

Built Distribution

apdaemon-0.2.3-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

Details for the file apdaemon-0.2.3.tar.gz.

File metadata

  • Download URL: apdaemon-0.2.3.tar.gz
  • Upload date:
  • Size: 2.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for apdaemon-0.2.3.tar.gz
Algorithm Hash digest
SHA256 22ed1f5bdd492415110d83b4f4d33ff3203c4d21475c0b17ebea35264f72c8fd
MD5 0ade50be1da2c8ee2dd5e013ba26b7ff
BLAKE2b-256 14e9124d4f5254991fbe9ef76ba4410ccf85eee096bd2774fec1c20f15e06175

See more details on using hashes here.

File details

Details for the file apdaemon-0.2.3-py3-none-any.whl.

File metadata

File hashes

Hashes for apdaemon-0.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 6b3543a33276b68d6a588e58f2c47ee5a02ddf23ca7fb32fac373fff22bf6b26
MD5 afc65324d8b79cc7ddc1dde123eb634e
BLAKE2b-256 f5fc36348356b147d00b51c1d9d14f70776c74f51f9666cab91fce6f9fe0c558

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page