{"repo":"kevinjosethomas/py-mon","free":true,"listed":false,"github":"https://github.com/kevinjosethomas/py-mon","clone":"git clone https://github.com/kevinjosethomas/py-mon.git","description":"🔁 Automatically restart application when file changes are detected; made for development","language":"Python","stars":81,"topics":["package","pypi","python","development","testing","automated-testing","developer-tools"],"license":"MIT","category":"dev-tools","readme_excerpt":"py-mon A modern, easy-to-use package to automatically restart a Python application when file changes are detected! Quickstart (10s) Zero-config reloads for Python files by default. Requires Python 3.9+. Why py-mon? - Works for Python files or any shell command ( -x \"npm run dev\" ). - Simple patterns for watch/ignore; sane defaults. - Clean/quiet mode available when you don’t want prompts. Core flags - -w / --watch : what to watch (default .py ). - -i / --ignore : what to ignore. - -x / --exec : run a shell command instead of python . - -d / --debug : print changed paths. - -c / --clean : no logs, no stdin commands. - --delay : wait this long after the last change before restarting (default 250 ), so editor save bursts trigger one restart. Command Input When running pymon, you can use these commands: - Type rs to manually restart the process - Type stop to terminate pymon If stdin is not available (e.g. running in CI or under a process manager), pymon keeps watching with command input disabled. When pymon stops or restarts your program, it terminates the whole process group, so shell commands started with -x don't leave stray child processes behind. Optional Config File Put a .pymonrc or pymon.json in your project root to keep team settings consistent: Command line arguments will always override config file settings. pycache , .pyc / .pyo files and .git internals are always ignored, in addition to any ignore patterns you set. Anyway that's basically it! Thanks for everything, ","default_branch":null,"files":null,"tree":[],"storefront":"/r/kevinjosethomas","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/kevinjosethomas/py-mon/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}