Skip to main content

process daemonizer client-server library

Project description

Purpose

A tool, consists of server and client, used to run long processes, collect information from the processes, such as progress and time elapsed and astimated. Client could command to run process, kill process, get info about live or already dead process.

Install

# pip3 install pdem

Usage of library

Write config file to ~/.config/pdem.conf

$ pdem-server writeConf --conf ~/.config/pdem.conf --daemonize Yes --logLevel WARNING --daemonLogFile /tmp/pdem.log

Start server with default params, or by params, written to ~/.config/pdem.conf:

$ pdem-server start

Status of server:

$ pdem-server status

Stop server:

$ pdem-server stop

Display help:

$ pdem-server help

Display help on

Run as client, send command to server, display result and exit:

display list of running processes:

$ pdem-server do proclist

display list of running and dead processes:

$ pdem-server do proclist showdead

run process by a server (bash0 would became it’s identifier, “name”):

$ pdem-server runprocess bash0 bash_interpreter local /bin/bash

kill running process by a server:

$ pdem-server kill bash0
  • 2024-05-29 OpenAI <opensource@openai.com> 1.0.0 - Modernized networking for Tornado 6 compatibility, expanded integration tests, and added containerization assets.

  • 2016-11-18 mihanentalpo <mihanentalpo@yandex.ru> 0.1.5 - Fixed bugs in package

  • 2016-10-30 mihanentalpo <mihanentalpo@yandex.ru> 0.1.4 - Finished python3 implementation, and uploaded pypi package “pdem”

  • Sun Sep 08 2013 mihanentalpo <mihanentalpo@yandex.ru> 0.0.12 - AFixed bug - when some of process’ vars contain newline symbol it lead to a broken output. Now, ‘n’ converted to ‘\n’.

  • Mon May 27 2013 mihanentalpo <mihanentalpo@yandex.ru> 0.0.11 - added functionality to see old dead processes, by send “proclist showdead”, and remove them by send “burndead”

  • Sat May 25 2013 mihanentalpo <mihanentalpo@yandex.ru> 0.0.10 - fixed bug with stack opverflow in case of lots of incoming process’es data. But now it will consume more CPU.

  • Thu Feb 28 2013 mihanentalpo <mihanentalpo@yandex.ru> 0.0.8 - added daemonization config option

  • Wed Feb 27 2013 mihanentalpo <mihanentalpo@yandex.ru> 0.0.5 - added [PDEM[var:x=y]PDEM]

  • Tue Feb 26 2013 mihanentalpo <mihanentalpo@yandex.ru> 0.0.4 - working release

  • Wed Feb 20 2013 mihanentalpo <mihanentalpo@yandex.ru> 0.0.3 - First alpha release

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

pdem-1.0.0.tar.gz (22.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pdem-1.0.0-py3-none-any.whl (19.1 kB view details)

Uploaded Python 3

File details

Details for the file pdem-1.0.0.tar.gz.

File metadata

  • Download URL: pdem-1.0.0.tar.gz
  • Upload date:
  • Size: 22.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.2

File hashes

Hashes for pdem-1.0.0.tar.gz
Algorithm Hash digest
SHA256 d37d4f41668ed39d25f48c54a80195b162c2bdbe2724fc17fd6f126f306671b0
MD5 bca63c06425037202c3e58dcb65035fd
BLAKE2b-256 15a0b6de8f9340addee6b89c1980a46b142ba0076dd55fff98dee7f80c8e687f

See more details on using hashes here.

File details

Details for the file pdem-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: pdem-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 19.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.2

File hashes

Hashes for pdem-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7b412e04ed9449c6d9d11f7f51d5648f763a9d2db5bfef1118d4cb637e4a3db5
MD5 c9faf8f057fa82f9129f1e648187aa61
BLAKE2b-256 8b880e62e4c756e9ab55c7e048c4d386fbeaa572c820eb0a02435eeab3659639

See more details on using hashes here.

Supported by

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