Skip to main content

Context Manager to set/reset the current process name.

Project description

proctitle Dynamic Process Names

Simple context manager so that tasks can be reflected in the process names of Celery workers.

For instance:

from proctitle import *
    with ProcTitle("intense task"):
    do_something_intense()

Can also be used as a function decorator:

from proctitle import *
import time

@ProcTitle("delay")
def g(n):
    time.sleep(n)

g(10)   # during this time, the proc title is "python - delay"

@ProcTitle("sleeping", replace=True)
def f(n):
    time.sleep(n)

f(10)   # during this time, the proc title is just "sleeping" 

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

ProcTitle-0.1.6.tar.gz (2.3 kB view hashes)

Uploaded Source

Built Distribution

ProcTitle-0.1.6-py3-none-any.whl (3.0 kB view hashes)

Uploaded Python 3

Supported by

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