This Python package implements the algorithm published in 1 with proper testing and convenient interfaces.
PATEL, Kashyap; PANAHI, Issa MS. Frequency-based multi-band adaptive compression for hearing aid application. In: Proceedings of Meetings on Acoustics. Acoustical Society of America, 2019. S. 055004.