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.4.tar.gz (2.7 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for apdaemon-0.2.4.tar.gz
Algorithm Hash digest
SHA256 093c61d84d0f9e8102d6ee3195086fa69f0e6da15ffb1e1a367a24f75cba3260
MD5 42a176422958728336673f2dcbfa829c
BLAKE2b-256 4a74767bac3dec85653c2de00a81d19c1f467e95820e18084eb979e58e271fc9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for apdaemon-0.2.4-py3-none-any.whl
Algorithm Hash digest
SHA256 6efa86cb6cefe929b128d93f631caa6f90be12db0d55dca9102debfc269d8699
MD5 c192327133995b2abd805ae4960e3a69
BLAKE2b-256 10947c8982198d5894581928ecf79e4899709668b253e1e57133b9007c2b492c

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