Skip to main content

Python Materials Genomics is a robust materials analysis code that defines core object representations for structures

Project description

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.

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-2024.10.29.tar.gz (3.1 MB view details)

Uploaded Source

Built Distributions

pymatgen-2024.10.29-cp312-cp312-win_amd64.whl (3.6 MB view details)

Uploaded CPython 3.12 Windows x86-64

pymatgen-2024.10.29-cp312-cp312-win32.whl (3.6 MB view details)

Uploaded CPython 3.12 Windows x86

pymatgen-2024.10.29-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (5.0 MB view details)

Uploaded CPython 3.12 manylinux: glibc 2.17+ x86-64

pymatgen-2024.10.29-cp312-cp312-macosx_11_0_arm64.whl (3.6 MB view details)

Uploaded CPython 3.12 macOS 11.0+ ARM64

pymatgen-2024.10.29-cp311-cp311-win_amd64.whl (3.6 MB view details)

Uploaded CPython 3.11 Windows x86-64

pymatgen-2024.10.29-cp311-cp311-win32.whl (3.6 MB view details)

Uploaded CPython 3.11 Windows x86

pymatgen-2024.10.29-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (5.1 MB view details)

Uploaded CPython 3.11 manylinux: glibc 2.17+ x86-64

pymatgen-2024.10.29-cp311-cp311-macosx_11_0_arm64.whl (3.6 MB view details)

Uploaded CPython 3.11 macOS 11.0+ ARM64

pymatgen-2024.10.29-cp310-cp310-win_amd64.whl (3.6 MB view details)

Uploaded CPython 3.10 Windows x86-64

pymatgen-2024.10.29-cp310-cp310-win32.whl (3.6 MB view details)

Uploaded CPython 3.10 Windows x86

pymatgen-2024.10.29-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.9 MB view details)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

pymatgen-2024.10.29-cp310-cp310-macosx_11_0_arm64.whl (3.6 MB view details)

Uploaded CPython 3.10 macOS 11.0+ ARM64

File details

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

File metadata

  • Download URL: pymatgen-2024.10.29.tar.gz
  • Upload date:
  • Size: 3.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.5

File hashes

Hashes for pymatgen-2024.10.29.tar.gz
Algorithm Hash digest
SHA256 4872398725767042e1842830c4124712ecf8443f47c175ae7a2a861efe21bb0a
MD5 1e1a4493001163c58df9611c0cdebff8
BLAKE2b-256 f2491dc3f02f803a583a1d885b866b06ff77b1132778b685071782f904b52c93

See more details on using hashes here.

File details

Details for the file pymatgen-2024.10.29-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for pymatgen-2024.10.29-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 bcd3dad7fd4af4d1b8b93733ce03da71a09b43c45a642e2185c020fb5effb6cc
MD5 467507215425432b6ef68550d3bc1189
BLAKE2b-256 fe86c2b7578f52de4f8f7132343dc73567c022b91c44c1bf58cfb390bb8f685c

See more details on using hashes here.

File details

Details for the file pymatgen-2024.10.29-cp312-cp312-win32.whl.

File metadata

File hashes

Hashes for pymatgen-2024.10.29-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 67cfc4e035e37e30ee2c38a4bfa1387380672c5c390310ad0943221856f26d77
MD5 16b916e3cc9cb691d3f0970386a5ca0b
BLAKE2b-256 888b3ac0f4ba706ece761d196a6a8aa7f03bd4643924e5c5b0401a5f70f96baa

See more details on using hashes here.

File details

Details for the file pymatgen-2024.10.29-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pymatgen-2024.10.29-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 bff78f66d7cccf154be202d6058d6b0ec9b9d3190c1f468ef1e57b260b76bf95
MD5 eab981b33656ed2bef2a05822e139cb1
BLAKE2b-256 28d54618d013030afc170bf79291ce5eb683cddd31c3ae01cd25cf5ce88b9680

See more details on using hashes here.

File details

Details for the file pymatgen-2024.10.29-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for pymatgen-2024.10.29-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8d07ebaf5c257aa631dc3d1f6bc3379009c6ed4c44edb8afe55d55eeba4435d8
MD5 5bf19b0ca2a7efe9848236a550e89cda
BLAKE2b-256 16c83f4ba2a287de808e5fda872044d1a1395fb29fa0a320f8147100b52371a8

See more details on using hashes here.

File details

Details for the file pymatgen-2024.10.29-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for pymatgen-2024.10.29-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 fa994716628fe68c929dede25fb1757607456b2def1e71118a27679d7b7ba08e
MD5 a76e4678ee983b9504c122563c779314
BLAKE2b-256 cd4cc7da63796cdc0358921902f07aac15640df32c9a5e744be9307fe67c7ebd

See more details on using hashes here.

File details

Details for the file pymatgen-2024.10.29-cp311-cp311-win32.whl.

File metadata

File hashes

Hashes for pymatgen-2024.10.29-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 bbfbc5a13dee6071ea4ce5d5d5af7954ea76ee10022202415020a7e4422a530b
MD5 b30347d189a62407f8ac5d8a7ff4c25b
BLAKE2b-256 e22a9f0804c0f43dd241a17bc376466827c811d1fbf36e9aa6e36c0289f7ffd0

See more details on using hashes here.

File details

Details for the file pymatgen-2024.10.29-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pymatgen-2024.10.29-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 6ddb1d59198492942092fc343791ae3365b4243a7fb1a24a0560704bbbd22331
MD5 98bba15942f41de706b7c5580a0fe11a
BLAKE2b-256 38cf04c6a4c7db11c49642819bb6d44a7e48cc7a8b545c08558a12074cfb8077

See more details on using hashes here.

File details

Details for the file pymatgen-2024.10.29-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for pymatgen-2024.10.29-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3af745d2753da88e70fec004ccdb2f11570bc76c90d51ef44ce5180e88075c05
MD5 6c9ce9e1e9af05f3e03478d0cc203198
BLAKE2b-256 7373125ff5183e624a4c7a857ae67cde1e29b78920ea192a791be26989af67d6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pymatgen-2024.10.29-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 7a20753d5393469fc2353e31cb289b272baf9fe587345303aa668bfabacdba26
MD5 cae95eba64f38dc3c020e7cefa6160dd
BLAKE2b-256 f677ec6db0319ae8aad36b5cf9132bc3e529d89db28b094be5365ca3da15724d

See more details on using hashes here.

File details

Details for the file pymatgen-2024.10.29-cp310-cp310-win32.whl.

File metadata

File hashes

Hashes for pymatgen-2024.10.29-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 8311a64f23e5fbb270fdb0647d0dae0e30947f9e270a16e9465b267edf7e9263
MD5 28dd79a9ed5974e5a618dbd84f52eb86
BLAKE2b-256 1a5d2ba0d257a12be062a46bc2ffd186973141a31f3d1c1092edf8d26325adc4

See more details on using hashes here.

File details

Details for the file pymatgen-2024.10.29-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pymatgen-2024.10.29-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 6c0f548bebf729cd823671aaf9590d8398f9fdc7061246762773f934d463e1ba
MD5 348268c12f4b183dffd801c2d5874b7b
BLAKE2b-256 e16d74bea728e27463ff2b0b68534a832440b3e0109a8051071f2e05ad65694a

See more details on using hashes here.

File details

Details for the file pymatgen-2024.10.29-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for pymatgen-2024.10.29-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0e2cad9329878e35bcf1c8fd8d1ee46b0d22f99f48ab33cc9167f55e0b50ae54
MD5 91236ec4b138f9cfcfea08c4563a713e
BLAKE2b-256 6b8f9dcbc562b6864c0fcd3aaf40c0883269fd72ff410171c771d6cf7808e1d8

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