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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for apdaemon-0.2.5.tar.gz
Algorithm Hash digest
SHA256 0deee9f6c462453a7aa17d7a970051c4cacd795386c0e35f08a19553bebb06c6
MD5 c7032d1585586cf7940368415af33bff
BLAKE2b-256 3226c4d7e33d9eb989353bb317dbee6adccd8ab58be8a83d659fad4cbdbbe137

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for apdaemon-0.2.5-py3-none-any.whl
Algorithm Hash digest
SHA256 f4e9f4b1db7c245d264be58e6203e160ab5829323c7d6ba0ef17b2a5e11530be
MD5 37e1faac2c1211356de72843f9afc40f
BLAKE2b-256 75689f2de880cb02b2e58781e01165b5d06fde0e69b2891591a5a0c963cbed3f

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