tropygal is a pure-python package for entropy estimates in the context of galactic dynamics, but can be used to estimate the entropy in any context. It currently focuses on nearest-neighbor estimators, and it also provides a function for density estimates. Additionally, it provides functions for analytical distribution functions and density of states for dynamical models that have analytical expressions.
https://ui.adsabs.harvard.edu/abs/2024arXiv240707947B/abstract