{"library":"pymatgen-core","title":"pymatgen-core","description":"Python Materials Genomics (pymatgen) core library for materials analysis, providing object representations for structures, molecules, and crystals. Current version 2026.4.16, released April 2026. Active development with monthly releases, compatible with Python >= 3.11. This package is a refactored subset of the original pymatgen, focusing on core data structures and basic I/O.","language":"python","status":"active","last_verified":"Fri May 01","install":{"commands":["pip install pymatgen-core"],"cli":null},"imports":["from pymatgen.core import Structure","from pymatgen.core import Molecule","from pymatgen.core import Lattice","from pymatgen.core import Element"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"from pymatgen.core import Structure, Lattice, Element\n\n# Create a simple silicon diamond cubic structure\nlattice = Lattice.cubic(5.431)  # lattice constant in Angstrom\nspecies = [Element(\"Si\")] * 8\ncoords = [\n    [0, 0, 0],\n    [0.25, 0.25, 0.25],\n    [0.5, 0.5, 0],\n    [0.5, 0, 0.5],\n    [0, 0.5, 0.5],\n    [0.75, 0.75, 0.25],\n    [0.75, 0.25, 0.75],\n    [0.25, 0.75, 0.75]\n]\nstructure = Structure(lattice, species, coords, coords_are_cartesian=False)\nprint(structure)\nprint(f\"Volume: {structure.volume:.2f} Å³\")","lang":"python","description":"Create a silicon diamond cubic structure using pymatgen-core. Note: import from pymatgen.core, not pymatgen directly.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}