This is hloc, a modular toolbox for state-of-the-art 6-DoF visual localization.
conda install conda-forge::hloc
It implements Hierarchical Localization, leveraging image retrieval and feature matching, and is fast, accurate, and scalable.