I'm creating a friendly python development environment using venv and pip so users can start a jupyter notebook with all libs they can need on PYTHONPATH. In order to remove libs not used by users, I want to log all libs loaded during their Python execution in a centralized NAS share (they run their python process on their hosts, but they can write in a central NAS share). To do so, I considered using strace -e trace=open,read python..
and filter the entries by my libs file path, but I'm pretty sure there should be a standard python lib to do such telemetry job.
from Python telemetry - Log all python modules loaded
No comments:
Post a Comment