Currently we rely on a custom interface to connect between AFLOW's python wrapper and our library, however, new features have been pushed to PMG 2025.5.28 which include an AFLOW prototype matcher. We should move towards this.
Code in PMG:
https://github.com/materialsproject/pymatgen/blob/v2025.5.28/src/pymatgen/analysis/prototypes/__init__.py