A real-time QRS detection method which is proposed by Jiapu Pan and Willis J. Tompkins has been implemented in Python.
Jiapu Pan, Willis J. Tompkins, “A real-time QRS detection algorithm”, IEEE Transactions on Biomedical Engineering, vol. BME-32, no. 3, pp. 230-235, March 1985.