New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

proctitle

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

proctitle

Context Manager to set/reset the current process name.

pipPyPI
Version
0.1.6
Maintainers
1

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" 

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts