Skip to main content
Yanked

This release has been yanked by its maintainers, and will be ignored by installers, except when explicitly specified.
Consider using release 2026.10.24 instead.
Reason given by maintainers: Backward incompatible change introduced.

Logo

CI Status codecov PyPI Downloads Conda Downloads Requires Python 3.9+ 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.9. 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.

Our Copyright Policy

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.8.8

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

Source distribution (sdist)

Source distribution for pymatgen 2024.8.8
File Size Uploaded Provenance Actions
pymatgen-2024.8.8.tar.gz 3.1 MB Without provenance Details for pymatgen-2024.8.8.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for pymatgen 2024.8.8
File Actions
pymatgen-2024.8.8-cp312-cp312-win_amd64.whl CPython 3.12 CPython 3.12 Windows x86-64 Details for pymatgen-2024.8.8-cp312-cp312-win_amd64.whl
pymatgen-2024.8.8-cp312-cp312-win32.whl CPython 3.12 CPython 3.12 Windows x86-32 Details for pymatgen-2024.8.8-cp312-cp312-win32.whl
pymatgen-2024.8.8-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.8.8-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
pymatgen-2024.8.8-cp312-cp312-macosx_11_0_arm64.whl CPython 3.12 CPython 3.12 macOS 11.0+ ARM64 Details for pymatgen-2024.8.8-cp312-cp312-macosx_11_0_arm64.whl
pymatgen-2024.8.8-cp311-cp311-win_amd64.whl CPython 3.11 CPython 3.11 Windows x86-64 Details for pymatgen-2024.8.8-cp311-cp311-win_amd64.whl
pymatgen-2024.8.8-cp311-cp311-win32.whl CPython 3.11 CPython 3.11 Windows x86-32 Details for pymatgen-2024.8.8-cp311-cp311-win32.whl
pymatgen-2024.8.8-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.8.8-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
pymatgen-2024.8.8-cp311-cp311-macosx_11_0_arm64.whl CPython 3.11 CPython 3.11 macOS 11.0+ ARM64 Details for pymatgen-2024.8.8-cp311-cp311-macosx_11_0_arm64.whl
pymatgen-2024.8.8-cp310-cp310-win_amd64.whl CPython 3.10 CPython 3.10 Windows x86-64 Details for pymatgen-2024.8.8-cp310-cp310-win_amd64.whl
pymatgen-2024.8.8-cp310-cp310-win32.whl CPython 3.10 CPython 3.10 Windows x86-32 Details for pymatgen-2024.8.8-cp310-cp310-win32.whl
pymatgen-2024.8.8-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.8.8-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
pymatgen-2024.8.8-cp310-cp310-macosx_11_0_arm64.whl CPython 3.10 CPython 3.10 macOS 11.0+ ARM64 Details for pymatgen-2024.8.8-cp310-cp310-macosx_11_0_arm64.whl
pymatgen-2024.8.8-cp39-cp39-win_amd64.whl CPython 3.9 CPython 3.9 Windows x86-64 Details for pymatgen-2024.8.8-cp39-cp39-win_amd64.whl
pymatgen-2024.8.8-cp39-cp39-win32.whl CPython 3.9 CPython 3.9 Windows x86-32 Details for pymatgen-2024.8.8-cp39-cp39-win32.whl
pymatgen-2024.8.8-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.9 CPython 3.9 Linux glibc 2.17+ x86-64 Details for pymatgen-2024.8.8-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
pymatgen-2024.8.8-cp39-cp39-macosx_11_0_arm64.whl CPython 3.9 CPython 3.9 macOS 11.0+ ARM64 Details for pymatgen-2024.8.8-cp39-cp39-macosx_11_0_arm64.whl

Total release size: 66.1 MB

Release files / pymatgen-2024.8.8.tar.gz

Download URL pymatgen-2024.8.8.tar.gz
Size 3.1 MB
Tags Source
SHA-256 checksum
How to use checksums
3b5c1ad44d2931f332feb6cf4e210f5663e106065b753c8e448d711e30ba70e5
BLAKE2b-256 checksum
How to use checksums
d72569e100fd31bacdd92e8de0b4629e30d691d95e6847fe7ef6fd9854746fdd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.1.0 CPython/3.12.5

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

Download URL pymatgen-2024.8.8-cp312-cp312-win_amd64.whl
Size 3.6 MB
Tags CPython 3.12 Windows x86-64
SHA-256 checksum
How to use checksums
bc1eeb10393885adfadd4603f777af6c10d2bd0664d0c92a55b19d838f70fe2b
BLAKE2b-256 checksum
How to use checksums
b5772d11f6f1e60e2d79f7cff809d33ade29357e1b92965d0a5af917f413b99b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.1.0 CPython/3.12.5

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

Download URL pymatgen-2024.8.8-cp312-cp312-win32.whl
Size 3.6 MB
Tags CPython 3.12 Windows x86-32
SHA-256 checksum
How to use checksums
8d91046d7d60076e7a8483bfbbb683012bd9cdc7df4064fef12d28b95db95c71
BLAKE2b-256 checksum
How to use checksums
93b822be16a459c8484c3e8120ec5786c4a093d6e7296b41268ec7335c14b2b3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.1.0 CPython/3.12.5

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

Download URL pymatgen-2024.8.8-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
78df33ff5fceca5abb0f3f8ef16c87daaedaf597b066dfecb3dbe7f47a597f86
BLAKE2b-256 checksum
How to use checksums
ea569892ba3b92eb7e19b498bf791433589aec59a32c9c8f7b809fde05b801c6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.1.0 CPython/3.12.5

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

Download URL pymatgen-2024.8.8-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
adcffaa11aab0dac414e612303eba732978ab07a9631c0a397d504940413d555
BLAKE2b-256 checksum
How to use checksums
fe5441b36ab09d3cc235746d50b29e2a065ae9e1f381c3f03712db9b696187fc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.1.0 CPython/3.12.5

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

Download URL pymatgen-2024.8.8-cp311-cp311-win_amd64.whl
Size 3.6 MB
Tags CPython 3.11 Windows x86-64
SHA-256 checksum
How to use checksums
7291cd9e92d8d8f8a07b0b33b7adf91352a88ecb5a5134a8326fa649ff3956de
BLAKE2b-256 checksum
How to use checksums
c5df8ab17e3ddc464e7bcc7e86a66d366af8060c6bc23ba9b7df02d25e5f2269
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.1.0 CPython/3.12.5

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

Download URL pymatgen-2024.8.8-cp311-cp311-win32.whl
Size 3.6 MB
Tags CPython 3.11 Windows x86-32
SHA-256 checksum
How to use checksums
71f6a6b9518dbf39826738fcdbfec53d26bb41c94b1c55c5d9a6de7c1183fcb6
BLAKE2b-256 checksum
How to use checksums
64d8869571a95bae413c0705fcd276a7a8bfcd2989a0af30136ac4f2c74c7c28
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.1.0 CPython/3.12.5

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

Download URL pymatgen-2024.8.8-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
633f26cadf889473bf614869a646b8f441bab39dfe1ada8774cce0ad1a6bda45
BLAKE2b-256 checksum
How to use checksums
0d9543c0e06f9b3aadd7e47c931fb1a420e2acd6fff71b4b8c2b59c51d7802d2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.1.0 CPython/3.12.5

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

Download URL pymatgen-2024.8.8-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
9dd836cedb80c34c9f06319290f49a571d20f38d31677af89c6f906262123797
BLAKE2b-256 checksum
How to use checksums
8e4238a4ba35353400d26afb3bc9df136a6b3bdad367a8fe22dc45eeffe0c747
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.1.0 CPython/3.12.5

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

Download URL pymatgen-2024.8.8-cp310-cp310-win_amd64.whl
Size 3.6 MB
Tags CPython 3.10 Windows x86-64
SHA-256 checksum
How to use checksums
7506b9bc54f41ffdfccdc8a7845f1393b19258ccd6809c280bd305f0c92e9a0d
BLAKE2b-256 checksum
How to use checksums
6f2e7c0136097e2426c857f2b9bdc13a48ee0693ddf8aee45043f544ea3e40a7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.1.0 CPython/3.12.5

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

Download URL pymatgen-2024.8.8-cp310-cp310-win32.whl
Size 3.6 MB
Tags CPython 3.10 Windows x86-32
SHA-256 checksum
How to use checksums
b7543e0b76a114b360c07ec9b0bd83f076543d84c6994df0f6176c856fee6e54
BLAKE2b-256 checksum
How to use checksums
2e781ad0390dedc56a8ba7ca60b8bcee7f1972018b5629dec868eaa6bc6dc7fd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.1.0 CPython/3.12.5

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

Download URL pymatgen-2024.8.8-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
8b5c8ac390d218c686872edacdb3a6adb169c056b37a10727f82c09fe972c949
BLAKE2b-256 checksum
How to use checksums
b773a88fd6a42b52460ebf62fdc84aba0da76f2ada36e9d0faa56557150136a0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.1.0 CPython/3.12.5

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

Download URL pymatgen-2024.8.8-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
3ceee63c5130e20bd53386fc34020654560f8705a7545a5a68093e33dfdeeba8
BLAKE2b-256 checksum
How to use checksums
65ab2acf97edbf78c2e7d51a76cb535fc7ab90b7c82c942d88adc6e7a324abdb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.1.0 CPython/3.12.5

Release files / pymatgen-2024.8.8-cp39-cp39-win_amd64.whl

Download URL pymatgen-2024.8.8-cp39-cp39-win_amd64.whl
Size 3.6 MB
Tags CPython 3.9 Windows x86-64
SHA-256 checksum
How to use checksums
505d04f03a57a48ea0f09e9279fe5d3e007f8cea7c38610aac64d5b936fdd956
BLAKE2b-256 checksum
How to use checksums
0f534b2d4141633e7daad08a05e8cca0734476abe8b0c2ffbe0e2917e1d8fcc6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.1.0 CPython/3.12.5

Release files / pymatgen-2024.8.8-cp39-cp39-win32.whl

Download URL pymatgen-2024.8.8-cp39-cp39-win32.whl
Size 3.6 MB
Tags CPython 3.9 Windows x86-32
SHA-256 checksum
How to use checksums
fc3a42447d0ed555b1561f5f189b674f837c8466e63d42bf52ec6ab1f31d8759
BLAKE2b-256 checksum
How to use checksums
d21b3293bff80c5302708f631db7e6e2720a9fb026d789210d5f3d88939eb928
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.1.0 CPython/3.12.5

Release files / pymatgen-2024.8.8-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL pymatgen-2024.8.8-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 4.9 MB
Tags CPython 3.9 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
a7ea9ebece64583201102a92f6050f535d322ccce15fdd5d6ad990354755d7fa
BLAKE2b-256 checksum
How to use checksums
034c95f991abe45ce7e0be4d23bcfa9b5277de5d5363d0c8e01863e8d081a377
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.1.0 CPython/3.12.5

Release files / pymatgen-2024.8.8-cp39-cp39-macosx_11_0_arm64.whl

Download URL pymatgen-2024.8.8-cp39-cp39-macosx_11_0_arm64.whl
Size 3.6 MB
Tags CPython 3.9 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
1eabd22a7c9b07db49cb4846619dfdc7beede67edc3d37bb19466aca22a84464
BLAKE2b-256 checksum
How to use checksums
a1e805b7bc235825ffe13c99926f4192d8c6535d01cc5f46d869eea8742815cc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.1.0 CPython/3.12.5

Security for pymatgen 2024.8.8

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.8.8 This release

17 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