{"library":"pystack","title":"pystack","description":"pystack is a command-line tool developed by Bloomberg for analyzing the stack of remote Python processes. It attaches to a running Python process (supporting Python >=3.7) and dumps the Python stack frames, including local variables and source references, without requiring debug symbols or ptrace. The current version is 1.6.0, with a stable maintenance release cadence.","language":"python","status":"active","last_verified":"Mon Apr 27","install":{"commands":["pip install pystack"],"cli":{"name":"pystack","version":"1.6.0"}},"imports":["import pystack"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import subprocess\nimport os\n\n# Attach to a Python process by PID (replace 1234)\nresult = subprocess.run(['pystack', '1234'], capture_output=True, text=True)\nprint(result.stdout)\n","lang":"python","description":"Run pystack via CLI from Python. The tool must be installed and the process must be a Python process >=3.7.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}