Materials-database connectors and pymatgen interoperability for the Kalika materials platform (Phase 128.1.1.4).
- Connectors —
MaterialsProjectConnector,AflowConnector,JarvisConnectortranslate a provider-agnosticMaterialsQueryinto provider-specific requests and normalise responses intoMaterialsRecord. The HTTP transport is injectable, so the connectors are testable offline; they fail loud (NotConfigured) when required credentials are missing rather than returning fabricated data. - pymatgen interop —
to_pymatgen/from_pymatgenconvert between the dependency-freeStructureand pymatgen'sStructure. pymatgen is optional; conversion raisesPymatgenUnavailablewhen it is not installed.
bash
pip install -e . # connectors (stdlib only)
pip install -e .[pymatgen] # add pymatgen interop
pytest