Emmet Core is the foundational Python library for the Materials Project data ecosystem. It provides Pydantic models and serializers for representing diverse materials science data, including crystallographic structures, VASP calculations, and associated metadata. This library ensures data standardization and interoperability within the materials science domain. It is currently at version 0.86.3, with an active development cycle often releasing pre-release versions.
pip install emmet-coreVerified import paths — ran on the pinned version, not inferred.
This example demonstrates how to create a basic `MaterialsDoc` instance by first generating a `pymatgen` structure and then populating the Pydantic model with required and some optional fields. This showcases the core data modeling capabilities of `emmet-core`.
Upgrade your Python environment to 3.11 or later.
Ensure your project's dependencies are compatible with Pydantic V2, or isolate emmet-core in a separate environment if V1 is strictly required elsewhere.
Always review the changelog when upgrading, particularly for changes in data model fields or types, and validate existing data against new schemas.
If you need more than just the data models, install `pip install emmet` or `pip install emmet-builder` depending on your use case.