Skip to main content

Logo

CI Status codecov PyPI Downloads Conda Downloads Requires Python 3.10+ Paper

Pymatgen (Python Materials Genomics) is a robust, open-source Python library for materials analysis. These are some of the main features:

  1. Highly flexible classes for the representation of Element, Site, Molecule and Structure objects.
  2. Extensive input/output support, including support for VASP, ABINIT, CIF, Gaussian, XYZ, and many other file formats.
  3. Powerful analysis tools, including generation of phase diagrams, Pourbaix diagrams, diffusion analyses, reactions, etc.
  4. Electronic structure analyses, such as density of states and band structure.
  5. Integration with the Materials Project REST API.

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 Materials Virtual 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

If you'd like to use the latest unreleased changes on the main branch, you can install directly from GitHub:

pip install -U git+https://github.com/materialsproject/pymatgen

The minimum Python version is 3.10. 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.

How to cite pymatgen

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

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.

Soliciting contributions to 2nd pymatgen paper

If you are a long-standing pymatgen contributor and would like to be involved in working on an updated pymatgen publication, please fill out this co-author registration form or contact @shyuep, @mkhorton and @janosh with questions.

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 Materials Virtual Lab started Pymatgen in 2011 and is still the project lead. Janosh Riebesell (@janosh) and Matthew Horton (@mkhorton) are co-maintainers.

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 2024.9.10

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

Built distributions (wheels)

Table of built distributions (wheels) for pymatgen 2024.9.10
File Actions
pymatgen-2024.9.10-cp312-cp312-win_amd64.whl CPython 3.12 CPython 3.12 Windows x86-64 Details for pymatgen-2024.9.10-cp312-cp312-win_amd64.whl
pymatgen-2024.9.10-cp312-cp312-win32.whl CPython 3.12 CPython 3.12 Windows x86-32 Details for pymatgen-2024.9.10-cp312-cp312-win32.whl
pymatgen-2024.9.10-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.12 CPython 3.12 Linux glibc 2.17+ x86-64 Details for pymatgen-2024.9.10-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
pymatgen-2024.9.10-cp312-cp312-macosx_11_0_arm64.whl CPython 3.12 CPython 3.12 macOS 11.0+ ARM64 Details for pymatgen-2024.9.10-cp312-cp312-macosx_11_0_arm64.whl
pymatgen-2024.9.10-cp311-cp311-win_amd64.whl CPython 3.11 CPython 3.11 Windows x86-64 Details for pymatgen-2024.9.10-cp311-cp311-win_amd64.whl
pymatgen-2024.9.10-cp311-cp311-win32.whl CPython 3.11 CPython 3.11 Windows x86-32 Details for pymatgen-2024.9.10-cp311-cp311-win32.whl
pymatgen-2024.9.10-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.11 CPython 3.11 Linux glibc 2.17+ x86-64 Details for pymatgen-2024.9.10-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
pymatgen-2024.9.10-cp311-cp311-macosx_11_0_arm64.whl CPython 3.11 CPython 3.11 macOS 11.0+ ARM64 Details for pymatgen-2024.9.10-cp311-cp311-macosx_11_0_arm64.whl
pymatgen-2024.9.10-cp310-cp310-win_amd64.whl CPython 3.10 CPython 3.10 Windows x86-64 Details for pymatgen-2024.9.10-cp310-cp310-win_amd64.whl
pymatgen-2024.9.10-cp310-cp310-win32.whl CPython 3.10 CPython 3.10 Windows x86-32 Details for pymatgen-2024.9.10-cp310-cp310-win32.whl
pymatgen-2024.9.10-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.10 CPython 3.10 Linux glibc 2.17+ x86-64 Details for pymatgen-2024.9.10-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
pymatgen-2024.9.10-cp310-cp310-macosx_11_0_arm64.whl CPython 3.10 CPython 3.10 macOS 11.0+ ARM64 Details for pymatgen-2024.9.10-cp310-cp310-macosx_11_0_arm64.whl

Total release size: 47.4 MB

Release files / pymatgen-2024.9.10-cp312-cp312-win_amd64.whl

Download URL pymatgen-2024.9.10-cp312-cp312-win_amd64.whl
Size 3.6 MB
Tags CPython 3.12 Windows x86-64
SHA-256 checksum
How to use checksums
c60e6205b56b1614e721d39e6ed28e3928c09f5f6adfc7fe9683959e1d24ce57
BLAKE2b-256 checksum
How to use checksums
60e3c71084a27d00276f5475b14c2872b0d9392a1b0f9123e545415045f2a28f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.1.1 CPython/3.12.6

Release files / pymatgen-2024.9.10-cp312-cp312-win32.whl

Download URL pymatgen-2024.9.10-cp312-cp312-win32.whl
Size 3.6 MB
Tags CPython 3.12 Windows x86-32
SHA-256 checksum
How to use checksums
e8cc0e34dbc3c3a67b49010213488f8a5a91997fae5cb97df0aca3536c8d284d
BLAKE2b-256 checksum
How to use checksums
ddf0ef164a13860dd81149136662c792892a52a9af7345d85b70200edb90db26
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.1.1 CPython/3.12.6

Release files / pymatgen-2024.9.10-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL pymatgen-2024.9.10-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 5.0 MB
Tags CPython 3.12 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
07e3ead3033f39e3bb0b6d610dc0c1960132a6f9514b2a0d0102015e6490427d
BLAKE2b-256 checksum
How to use checksums
78c5146a61d6e5a0cc6ea46bd6db34cb9bb9d1975f9d4e962fe1fc1e6c183f5b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.1.1 CPython/3.12.6

Release files / pymatgen-2024.9.10-cp312-cp312-macosx_11_0_arm64.whl

Download URL pymatgen-2024.9.10-cp312-cp312-macosx_11_0_arm64.whl
Size 3.6 MB
Tags CPython 3.12 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
bf69561d9b3cb08f84383fec10d8e6c6f102c728a795a791c87457d663f1050a
BLAKE2b-256 checksum
How to use checksums
22e185f970e1dff8d6f4beb129019751e30a88f564f40df910182c22b6e0dba2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.1.1 CPython/3.12.6

Release files / pymatgen-2024.9.10-cp311-cp311-win_amd64.whl

Download URL pymatgen-2024.9.10-cp311-cp311-win_amd64.whl
Size 3.6 MB
Tags CPython 3.11 Windows x86-64
SHA-256 checksum
How to use checksums
fcba8df11327f8c0646abb2684416a725355da8db46507e3fcc98e6d3a431372
BLAKE2b-256 checksum
How to use checksums
c7772143a10bb60097155fe710d06d5b355d716612942062286824a2db553b86
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.1.1 CPython/3.12.6

Release files / pymatgen-2024.9.10-cp311-cp311-win32.whl

Download URL pymatgen-2024.9.10-cp311-cp311-win32.whl
Size 3.6 MB
Tags CPython 3.11 Windows x86-32
SHA-256 checksum
How to use checksums
139ad0b32f3462ad52ff67c1e0acca9ca9ba17eb63ed34fde424a8ced52a39f9
BLAKE2b-256 checksum
How to use checksums
ae2d3e2dbbf584961b953b0f1d2d5a43fee0fb80820e5fabafa1d2fc1c3fe731
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.1.1 CPython/3.12.6

Release files / pymatgen-2024.9.10-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL pymatgen-2024.9.10-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 5.0 MB
Tags CPython 3.11 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
578959ef92c260b3ed87ce988ee6d3c47913ec18a943460727fd2da8e711c34d
BLAKE2b-256 checksum
How to use checksums
f75f889608124b84783352a9ce207aab6f06333c26e565d295c42dda6d014da1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.1.1 CPython/3.12.6

Release files / pymatgen-2024.9.10-cp311-cp311-macosx_11_0_arm64.whl

Download URL pymatgen-2024.9.10-cp311-cp311-macosx_11_0_arm64.whl
Size 3.6 MB
Tags CPython 3.11 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
9eb3741db591ed9bb33e861f0abd356e729619c6666736228035060c6657ae5c
BLAKE2b-256 checksum
How to use checksums
5e833270ffbd1ad4f276a18cfd229237b0191b3dddf51df2b056dad03221442e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.1.1 CPython/3.12.6

Release files / pymatgen-2024.9.10-cp310-cp310-win_amd64.whl

Download URL pymatgen-2024.9.10-cp310-cp310-win_amd64.whl
Size 3.6 MB
Tags CPython 3.10 Windows x86-64
SHA-256 checksum
How to use checksums
d62e9b85e934656bba1a6f17795c45f4efe18a61d2aa95a0b88a5db112369cad
BLAKE2b-256 checksum
How to use checksums
c4b907b0702b2641e8e4a136334fee4ea0a7d36a3f6f0ae77af07c3fce1371e7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.1.1 CPython/3.12.6

Release files / pymatgen-2024.9.10-cp310-cp310-win32.whl

Download URL pymatgen-2024.9.10-cp310-cp310-win32.whl
Size 3.6 MB
Tags CPython 3.10 Windows x86-32
SHA-256 checksum
How to use checksums
eef62a40ba5e3334128b9aa55679c80c6831dc51b89c9b3265e8626034f9c05d
BLAKE2b-256 checksum
How to use checksums
7fdc802fa3394f149a4686042737efddd8d7c15a209b34504e20462cfc91f11b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.1.1 CPython/3.12.6

Release files / pymatgen-2024.9.10-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL pymatgen-2024.9.10-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 4.9 MB
Tags CPython 3.10 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
e69afa91e9a14d43190eff8ddd1b11048e938483019ad2ff5c13dbe9df010267
BLAKE2b-256 checksum
How to use checksums
c7fef7e564cbaf973d8e41e57ef7abf3c6089bfe9b0dba1b530fc10627d0555e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.1.1 CPython/3.12.6

Release files / pymatgen-2024.9.10-cp310-cp310-macosx_11_0_arm64.whl

Download URL pymatgen-2024.9.10-cp310-cp310-macosx_11_0_arm64.whl
Size 3.6 MB
Tags CPython 3.10 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
9ac461f55058e6ac861dda2950fa75773e8927631c9b670cd8099b1272afbe6c
BLAKE2b-256 checksum
How to use checksums
34654f2174375063273bd02d38cdc5247bd360e270c65d8f9e6b01518c4fc02d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.1.1 CPython/3.12.6

Security for pymatgen 2024.9.10

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.

No provenance found

None of the files in this release were uploaded with 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

2024.9.10 This release

12 release files No provenance

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