Skip to main content
Incomplete provenance

1 of 2 files were uploaded without provenance metadata. View details.

Logo

CI Status codecov PyPI Downloads Conda Downloads Paper

Pymatgen (Python Materials Genomics) is a robust, open-source Python library for materials analysis.

These are some of the main features provided by this package on top of pymatgen-core:

  1. The full set of core classes from pymatgen-core (Element, Site, Molecule, Structure, Composition, Lattice) re-exported under the familiar pymatgen.core namespace, plus extensive input/output for VASP, ABINIT, CIF, Gaussian, XYZ and many other file formats.
  2. Powerful analysis tools (pymatgen.analysis), including generation of phase diagrams, Pourbaix diagrams, reaction analysis, local environments, surfaces, interfaces, defects, magnetism, piezoelectricity, elasticity and much more.
  3. Electronic structure analyses, such as density of states and band structure.
  4. Entry/thermo data objects (pymatgen.entries) for thermodynamic and reaction calculations.
  5. External integrations (pymatgen.ext), including the Materials Project REST API and other materials databases.
  6. End-user applications and a command-line interface (pymatgen.apps, pymatgen.cli).

Pymatgen is free to use. However, we also welcome your help to improve this library by making your contributions. These contributions can be in the form of additional tools or modules you develop, or feature requests and bug reports. The following are resources for pymatgen:

Why use pymatgen?

  1. It is (fairly) robust. Pymatgen is used by thousands of researchers and is the analysis code powering the Materials Project. The analysis it produces survives rigorous scrutiny every single day. Bugs tend to be found and corrected quickly. Pymatgen also uses Github Actions for continuous integration, which ensures that every new code passes a comprehensive suite of unit tests.
  2. It is well documented. A fairly comprehensive documentation has been written to help you get to grips with it quickly.
  3. It is open. You are free to use and contribute to pymatgen. It also means that pymatgen is continuously being improved. We will attribute any code you contribute to any publication you specify. Contributing to pymatgen means your research becomes more visible, which translates to greater impact.
  4. It is fast. Many of the core numerical methods in pymatgen have been optimized by vectorizing in numpy/scipy. This means that coordinate manipulations are fast. Pymatgen also comes with a complete system for handling periodic boundary conditions.
  5. It will be around. Pymatgen is not a pet research project. It is used in the well-established Materials Project. It is also actively being developed and maintained by the Materialyze Lab, the ABINIT group and many other research groups.
  6. A growing ecosystem of developers and add-ons. Pymatgen has contributions from materials scientists all over the world. We also now have an architecture to support add-ons that expand pymatgen's functionality even further. Check out the contributing page and add-ons page for details and examples.

Installation

The version at the Python Package Index PyPI is always the latest stable release that is relatively bug-free and can be installed via pip:

pip install pymatgen

This installs both pymatgen (analyses, applications and external integrations) and pymatgen-core (core data objects and file I/O). For a minimal install with just the core objects and I/O, depend on pymatgen-core instead:

pip install pymatgen-core

Some extra functionality (e.g., generation of POTCARs) does require additional setup (see the pymatgen docs).

Change Log

See GitHub releases, docs/CHANGES.md or commit history in increasing order of details.

Using pymatgen

Please refer to the official pymatgen docs for tutorials and examples. Dr Anubhav Jain (@computron) has also created a series of tutorials and YouTube videos, which is a good resource, especially for beginners.

How to cite pymatgen

If you use pymatgen in your research, please cite the following work:

Janine George, Matthew K. Horton, Aaron D. Kaplan, Seán R. Kavanagh, Janosh Riebesell, Andrew S. Rosen,
Haoyu Yang, Felix Adams, Mahdi Amachraa, Oxana Andriuc, Omar A. Ashour, Saurabh Bajaj, Ella Banyas, Luis
Barroso-Luque, Karlo Berket, Noam Bernstein, Arpit Bhardwaj, Ali Hussain Umar Bhatti, Samuel M. Blau,
Brandon Bocklund, Alexander Bonkowski, Danny Broberg, Guillaume Brunin, Kyle Bystrom, Charles A. Cardot,
Rees Chang, Chi Chen, Wei Chen, Xin Chen, Yuan Chiang, Kamal Choudhary, Orion A. Cohen, Miguel D. Costa,
Stephen T. Dacek III, Maarten de Jong, Tom Demeyere, Alan K. Dozier, Alexander Dunn, Shyam Dwaraknath,
Maxwell T. Dylla, Kristjan Eimre, Alexander R. Epstein, Christina Ertural, Marco Esters, Matthew L.
Evans, Johannes Falke, Adam Fekete, Bernard Field, Alexandr Fonari, Nathan C. Frey, Dale W. Gaines II,
Alex M. Ganose, Matteo Giantomassi, Rhys E. A. Goodall, Petre-Flaviu Gostin, Aayush Gupta, Viet-Anh Ha,
Geoffroy Hautier, Niclas Heinsdorf, Michael F. Herbst, Tingzheng Hou, Patrick Huck, Yuji Ikeda, Adam J.
Jackson, Saivenkataraman Jayaraman, Finn R. Kearns, Sunghyun Kim, Ryan S. Kingsbury, Adam M. Krajewski,
Yu Kumagai, Matthew C. Kuner, William T. Laderer, Weitang Li, Xiang-Guo Li, Yu Hsuan Liang, Hanyu Liu, Ke
Liu, Miao Liu, Ahmad Lutfi, Olivier Marchand, Matthew J. McDermott, Bharat K. Medasani, Fanchen Meng,
Kyle D. Miller, Henrique Miranda, Rohith Srinivaas Mohanakrishnan, Joseph H. Montoya, Guy C. Moore,
Benjamin J. Morgan, Jason M. Munro, Koki Muraoka, Aakash A. Naik, Willis O'Leary, Anthony Onwuli, Jaesuk
Park, Drew F. Parsons, Kai Pei, Guido Petretto, Thomas A. R. Purcell, Ji Qi, Xiaohui Qu, Ihor Radchenko,
Nav Nidhi Rajput, Francesco Ricci, Benjamin S. Rich, William D. Richards, Gian-Marco Rignanese, Xiaoxu
Ruan, Germain Salvato Vallverdu, Jonathan Schmidt, Jimmy-Xuan Shen, Ryuichi Shimogawa, Kohei Shinohara,
Arunima K. Singh, Eric Sivonxay, Stef Smeets, Tess E. Smidt, Andrei Sobolev, Evan Walter Clark
Spotte-Smith, Christopher Stihl, Wenhao Sun, Jack D. Sundberg, Yuta Suzuki, Leopold Talirz, Hanmei Tang,
Eric Taw, Cooper Tezak, Félix Therrien, Scott D. Thiel, Steven B. Torrisi, Mark E. Turiansky, Katharina
Ueltzen, Michiel J. van Setten, Josua Vieten, Sudarshan Vijay, Nicholas Wagner, Frank Wan, Amanda Wang,
Jingyang Wang, Zhenbin Wang, Logan Ward, Thomas Warford, David Waroquiers, Mingjian Wen, Oskar Weser,
Nicholas Winner, Donald Winston, Michael Wolloch, Brandon M. Wood, Rachel Woods-Robinson, Yihan Xiao,
Yaoshu Xie, Firat Yalcin, Ruo Xi Yang, Weike Ye, Pezhman Zarabadi-Poor, Jinzhe Zeng, Hongsheng Zhao,
Kaifeng Zheng, He Zhu, Zhuoying Zhu, Nils E. R. Zimmermann, Daniel Zügner, Kristin A. Persson, Anubhav
Jain, Shyue Ping Ong.
pymatgen: 15 years of community growth, new functionality, and future prospects.
arXiv, 2026, arXiv:2610.23538. doi:10.48550/arXiv.2610.23538

Please also consider citing the original pymatgen paper:

Shyue Ping Ong, William Davidson Richards, Anubhav Jain, Geoffroy Hautier, Michael Kocher, Shreyas Cholia, Dan
Gunter, Vincent Chevrier, Kristin A. Persson, Gerbrand Ceder. Python Materials Genomics (pymatgen): A Robust,
Open-Source Python Library for Materials Analysis. Computational Materials Science, 2013, 68, 314-319.
doi:10.1016/j.commatsci.2012.10.028

In addition, some of pymatgen's functionality is based on scientific advances/principles developed by the computational materials scientists in our team. Please refer to the pymatgen docs on how to cite them.

License

Pymatgen is released under the MIT License. The terms of the license are as follows:

The MIT License (MIT) Copyright (c) 2011-2012 MIT & LBNL

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
documentation files (the "Software"), to deal in the Software without restriction, including without limitation the
rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of
the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

About the Pymatgen Development Team

Shyue Ping Ong (@shyuep) of the Materialyze Lab started Pymatgen in 2011 and is still the project lead.

The pymatgen development team is the set of all contributors to the pymatgen project, including all subprojects.

Pymatgen uses a shared copyright model. Each contributor maintains copyright over their contributions to pymatgen. But, it is important to note that these contributions are typically only changes to the repositories. Thus, the pymatgen source code, in its entirety is not the copyright of any single person or institution. Instead, it is the collective copyright of the entire pymatgen Development Team. If individual contributors want to maintain a record of what changes/contributions they have specific copyright on, they should indicate their copyright in the commit message of the change, when they commit the change to one of the pymatgen repositories.

Metadata

Release files for pymatgen 2026.10.24

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Incomplete provenance

1 of 2 files were uploaded without provenance metadata.

We recommend further investigation before installing these files. View details.

Source distribution (sdist)

Source distribution for pymatgen 2026.10.24
File Size Uploaded Provenance
pymatgen-2026.10.24.tar.gz 782.6 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for pymatgen 2026.10.24
File Interpreter ABI Platform
pymatgen-2026.10.24-py3-none-any.whl Python 3 none any Details

Total release size: 1.6 MB

Release files / pymatgen-2026.10.24.tar.gz

Incomplete provenance

This file belongs to a release with incomplete provenance: while other files in this release have provenance metadata, this file does not.

We recommend further investigation before installing this file. View details.

Download URL pymatgen-2026.10.24.tar.gz
Size 782.6 kB
Tags Source
SHA-256 checksum
How to use checksums
4a150905fe12e9f087e47647a6f18b898d778e21228c8233571f70e4803964f0
BLAKE2b-256 checksum
How to use checksums
6442a2441cdc5c6ab009821350f0ee427d116449970d010a6553d087b557de1f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.5 {"installer":{"name":"uv","version":"0.13.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / pymatgen-2026.10.24-py3-none-any.whl

Incomplete provenance

This file belongs to a release with incomplete provenance: while this file has provenance metadata, other files in this release do not.

We recommend further investigation before installing this file. View details.

Download URL pymatgen-2026.10.24-py3-none-any.whl
Size 829.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bd341f2e0550ec38358de2c95a65cabd9f1efa433df48ed5b615cc2d0115d827
BLAKE2b-256 checksum
How to use checksums
4af00207ab3a15f86200f4fe798eb0f05eab0237380d8574b0d9f1ee107bc875
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.13

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 23, 2026.

Transparency log

Security for pymatgen 2026.10.24

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Incomplete provenance

1 of 2 files were uploaded without provenance metadata.

Files with provenance 1 / 2
Files without provenance 1 / 2
Select from 2 files

Attestations for pymatgen-2026.10.24.tar.gz

This file was uploaded without provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

3.0.12

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page