Instance Checker
A simple and powerful Python utility to count running instances of an application.
Usage Example
from instance_checker.utils import CountHelper
helper = CountHelper(lock_dir="/tmp/my_app_locks")
print(helper.process_count("my_app")) #> 2
print(helper.pid_file_count("my_app")) #> 1
Installation
pip install instance-checker
License
MIT License — feel free to use it in any project! 🎉
Documentation
https://instance-checker.dkurchigin.ru/
Author
Made with ❤️ by @dkurchigin