Skip to main content

Python Materials Genomics is a robust materials analysis code that defines core object representations for structures and molecules with support for many electronic structure codes. It is currently the core analysis code powering the Materials Project (https://materialsproject.org).

Project description

Logo

CI Status Coveralls PyPI Downloads Conda Downloads Requires Python 3.8+

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 extremely fast and are in fact comparable to codes written in other languages. 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

The minimum Python version is 3.8. Some extra functionality (e.g., generation of POTCARs) does require additional setup (see the pymatgen page).

Change Log

Please check GitHub releases and commit history for the latest changes. A legacy changelog is still up at https://pymatgen.org/change_log.

Using pymatgen

Please refer to the official pymatgen page 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 pymatgen's documentation 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 of the Materials Virtual 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.

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.

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pymatgen-2023.1.30.tar.gz (9.6 MB view details)

Uploaded Source

Built Distributions

pymatgen-2023.1.30-cp310-cp310-win_amd64.whl (10.2 MB view details)

Uploaded CPython 3.10 Windows x86-64

pymatgen-2023.1.30-cp310-cp310-macosx_11_0_x86_64.whl (10.2 MB view details)

Uploaded CPython 3.10 macOS 11.0+ x86-64

pymatgen-2023.1.30-cp39-cp39-win_amd64.whl (10.2 MB view details)

Uploaded CPython 3.9 Windows x86-64

pymatgen-2023.1.30-cp39-cp39-macosx_11_0_x86_64.whl (10.2 MB view details)

Uploaded CPython 3.9 macOS 11.0+ x86-64

pymatgen-2023.1.30-cp39-cp39-macosx_11_0_arm64.whl (10.2 MB view details)

Uploaded CPython 3.9 macOS 11.0+ ARM64

pymatgen-2023.1.30-cp38-cp38-win_amd64.whl (10.2 MB view details)

Uploaded CPython 3.8 Windows x86-64

pymatgen-2023.1.30-cp38-cp38-macosx_10_15_x86_64.whl (10.2 MB view details)

Uploaded CPython 3.8 macOS 10.15+ x86-64

File details

Details for the file pymatgen-2023.1.30.tar.gz.

File metadata

  • Download URL: pymatgen-2023.1.30.tar.gz
  • Upload date:
  • Size: 9.6 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.13

File hashes

Hashes for pymatgen-2023.1.30.tar.gz
Algorithm Hash digest
SHA256 3cd7761d615d9552e3116870dc12d3d19b83b2f6e24e6d62a436d2661e1f39a7
MD5 f3e87c270df76d3eac1b30ab598403a3
BLAKE2b-256 ec9af459ad91c080456c855cf78cc60c93343856cef038a067d961461cbe360e

See more details on using hashes here.

File details

Details for the file pymatgen-2023.1.30-cp310-cp310-win_amd64.whl.

File metadata

File hashes

Hashes for pymatgen-2023.1.30-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 7afa79945d81d666026f061bf65a156b9b1aa2f0ff8e069c25d75de20b976e5e
MD5 4a7e29002b6f6ca004c8ca63771e03b9
BLAKE2b-256 c110758fc243eb8b99e1788bf1bc7c91c73a7729f19843bced91e0c9990fa549

See more details on using hashes here.

File details

Details for the file pymatgen-2023.1.30-cp310-cp310-macosx_11_0_x86_64.whl.

File metadata

File hashes

Hashes for pymatgen-2023.1.30-cp310-cp310-macosx_11_0_x86_64.whl
Algorithm Hash digest
SHA256 d7812d1ed2b408aa64b1e63b8d51ff46468720858dc62bc7bec816a3034e7d43
MD5 0e4dbbab7ddbebcce0223af4e986032a
BLAKE2b-256 892a6085b094f1948ae1a0be48973c5aa7250ba02b8c151f39d707d83e123bbc

See more details on using hashes here.

File details

Details for the file pymatgen-2023.1.30-cp39-cp39-win_amd64.whl.

File metadata

File hashes

Hashes for pymatgen-2023.1.30-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 98f81040780449404eae4148680f790dab791dfc628840ef7418a76c9aaeb6c4
MD5 ceb34eec22c1a07c55bbcb458346264b
BLAKE2b-256 2db3fae486811667d91b83823d7ada6ad266615d348492aaf106411966a19a07

See more details on using hashes here.

File details

Details for the file pymatgen-2023.1.30-cp39-cp39-macosx_11_0_x86_64.whl.

File metadata

File hashes

Hashes for pymatgen-2023.1.30-cp39-cp39-macosx_11_0_x86_64.whl
Algorithm Hash digest
SHA256 733b7a0d404acfba68ed19f564d2a3350b84ffaeb555a7a68b251a943d0fe4ea
MD5 469a08e0a53346c6e313b29ce2b4bdb4
BLAKE2b-256 c6fff99d01fdfabf98f2e8c8e2e742bc279a5ff4bfc85ff9d9b16f0dcecead1a

See more details on using hashes here.

File details

Details for the file pymatgen-2023.1.30-cp39-cp39-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for pymatgen-2023.1.30-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 96e757158a01d14f688ef2c1c18d0ec049fcd05f7640901e5061d64da41138d4
MD5 83291f306d36e0cebf1b6cb8c61f6af7
BLAKE2b-256 66438e05b08768b601c67fccef301bc38d4ff108f6f60845099b9ed1e43fc3f9

See more details on using hashes here.

File details

Details for the file pymatgen-2023.1.30-cp38-cp38-win_amd64.whl.

File metadata

File hashes

Hashes for pymatgen-2023.1.30-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 1e6dc07767273c0bb417b50bdac6024697a01c075ec3d1f45fc51ce9b9203364
MD5 701bee143d844c697bfd997d7225f06b
BLAKE2b-256 9b6f784112d164e2076f65ad87d9a08fe255bb268eed02c8c1343482d05604b8

See more details on using hashes here.

File details

Details for the file pymatgen-2023.1.30-cp38-cp38-macosx_10_15_x86_64.whl.

File metadata

File hashes

Hashes for pymatgen-2023.1.30-cp38-cp38-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 ec3889d9b8590cf6391b040f8f6db0e1f97bee46b1a87f78e64926642cb89c11
MD5 b8a56ef4753391806bbdaec21d71af5e
BLAKE2b-256 c13f1a28bead7f437d8d731528db32fe3b7647ee0941c27c3bf4150d7498cd0e

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page