The dame-flame package performs almost exact matching for causal inference. It matches treatment and control units on as many relevant covariates as possible. For a longer description see the documentation: https://almost-matching-exactly.github.io/DAME-FLAME-Python-Package/
Music: www.bensound.com