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

Uploaded Source

Built Distributions

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

Uploaded CPython 3.12 Windows x86-64

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

Uploaded CPython 3.12 Windows x86

pymatgen-2024.10.25-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.25-cp312-cp312-macosx_11_0_arm64.whl (3.6 MB view details)

Uploaded CPython 3.12 macOS 11.0+ ARM64

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

Uploaded CPython 3.11 Windows x86-64

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

Uploaded CPython 3.11 Windows x86

pymatgen-2024.10.25-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.25-cp311-cp311-macosx_11_0_arm64.whl (3.6 MB view details)

Uploaded CPython 3.11 macOS 11.0+ ARM64

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

Uploaded CPython 3.10 Windows x86-64

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

Uploaded CPython 3.10 Windows x86

pymatgen-2024.10.25-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.25-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.25.tar.gz.

File metadata

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

File hashes

Hashes for pymatgen-2024.10.25.tar.gz
Algorithm Hash digest
SHA256 9579ce0bb018a0bfc0b0b655a4832eafb6ed702795555aa54b76b1770c279d93
MD5 e0490c066b7fe7df83ec60374d3a6c33
BLAKE2b-256 6b0a3d00e3b4f4dc8894e5b9916a6766f1b67859b2788a345d6b0ba6b291d0ad

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pymatgen-2024.10.25-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 bbea4654c172165c4b7e869e808499ae2d01641dca8d91360684af6fd085d1be
MD5 ed3db60ffbf1ea50c9e4efeab5f0d4ed
BLAKE2b-256 5e7da90498c323daa81d0aa6f2cf9b0b752f0820ed62a565b28de20d3f6af50f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pymatgen-2024.10.25-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 7c66ea7f95f956f2c534f6b338b99ca1c594d2d57f8022bdc3b4faf826aa73dd
MD5 9de9bc6bed548053192cd81255d2eb1e
BLAKE2b-256 778c4c9d3d1e895a91bc2dda290774236b3944b5be33d1b14bdd345f8e5eceaf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pymatgen-2024.10.25-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 233ee340ac7d80b671ee30e6089a71e0d8c1ce089467ba3e4312144abea22bd0
MD5 aa48897924f34046f5edf35b1c49989d
BLAKE2b-256 01a86ab0cb84673ba37cdf8c34b42988164c8ced5002144800f6371d49642ede

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pymatgen-2024.10.25-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 cf248f9ccdd721f142c6d0ac496582f62ca428037155a4c838e776973014e12d
MD5 53cc73cafb199b7b982427bf8de040fb
BLAKE2b-256 dbe91dfa3817271579c43b99b5db0622edd654f1b73ee6e6af984952cf1558ef

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pymatgen-2024.10.25-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 2bb1fb4986642380da89be03a1109158473384c7c6ab5887f256c8a99db42f24
MD5 28a15aa17d3197826f1b742dad593dca
BLAKE2b-256 e5e97e379787fed665b77ed5efccdd438efecb3ee8a98dfa59ee3dc4f5a91080

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pymatgen-2024.10.25-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 00c37dc8cbddc265870d70499de9c8acaccfae78c1be9be8d1af0fe6682556e2
MD5 f5132742e37fa50de1549855c8e71cb0
BLAKE2b-256 675709c0ffe2c1f6c592a60931cf854348c4c860bfc5412341ad3e804bb50dfd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pymatgen-2024.10.25-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 bbcc00875a66d454e0c70c269eec4f34f3162eec4318160e5baa89a281792076
MD5 b7b393898a23dd2a548291a8e27ee959
BLAKE2b-256 00c544e780b07172b6b5ce67f91803ebca8e106acf88a655b7e72ed1c32571be

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pymatgen-2024.10.25-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 531dd9b14163c98a4ff34519daa7bedb02bf1f3fa1a9cd364295ce3617667262
MD5 6d1942f857abd2b5fb068192eb749f11
BLAKE2b-256 5140e58e818bdf93b1a247e6544d1cc8f1ef2f0a426b509d3cce4e0d49814086

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pymatgen-2024.10.25-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 529cb8327f75ca531de371c17f8106adf1d0e5e0ab733e7c5a6e0e69cefd482a
MD5 cbdced99101420ca0ffb674c41771977
BLAKE2b-256 3c133eaa1f4ec13f90ef13c702917be6eede4179625eaa2deb288bebf267e369

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pymatgen-2024.10.25-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 f50009ad34e5cc80edd893c7b577ba91e79819c294c7d9cb0c358b07fd3b3a30
MD5 b14745d79b5fd7f64df2b9bab3c1295c
BLAKE2b-256 2f6b45d81e28313256fe8d13815d04e75b79c0fcb13dbc2ad732031bda99724a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pymatgen-2024.10.25-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 c7d3b0fa33bf362c4821af4913ce22e9226f0abf5bab710e797d7596022e4994
MD5 cb6cc8a1d52b8964d62c14fd0cdaf58a
BLAKE2b-256 0be2d120da80f3665c35e26f5940951685b34de61caf9b1d51113dbc10a33f3b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pymatgen-2024.10.25-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 20d4d3eddc2c13eb94077524ecaefd93e3d622c691105d10dd82268eba860cef
MD5 849d9cef3eea44d81ccf6aeef427c762
BLAKE2b-256 fbe73ca31ea40f67cb3c08106f5b98d9e6b7d3a23c7979166f91422af2e4b446

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