Python Materials Genomics is a robust materials analysis code that defines core object representations for structures
Project description
Pymatgen (Python Materials Genomics) is a robust, open-source Python library for materials analysis. These are some of the main features:
- Highly flexible classes for the representation of
Element
,Site
,Molecule
andStructure
objects. - Extensive input/output support, including support for VASP, ABINIT, CIF, Gaussian, XYZ, and many other file formats.
- Powerful analysis tools, including generation of phase diagrams, Pourbaix diagrams, diffusion analyses, reactions, etc.
- Electronic structure analyses, such as density of states and band structure.
- 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
:
- Official documentation
- Bug reports or feature requests: Please submit a GitHub issue.
- Code contributions via pull request are welcome.
- For questions that are not bugs or feature requests, please use the
pymatgen
MatSci forum or open a GitHub discussion. matgenb
provides some example Jupyter notebooks that demonstrate how to usepymatgen
functionality.
Why use pymatgen
?
- 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.
- It is well documented. A fairly comprehensive documentation has been written to help you get to grips with it quickly.
- It is open. You are free to use and contribute to
pymatgen
. It also means thatpymatgen
is continuously being improved. We will attribute any code you contribute to any publication you specify. Contributing topymatgen
means your research becomes more visible, which translates to greater impact. - It is fast. Many of the core numerical methods in
pymatgen
have been optimized by vectorizing innumpy
/scipy
. This means that coordinate manipulations are fast. Pymatgen also comes with a complete system for handling periodic boundary conditions. - 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.
- 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
Built Distributions
File details
Details for the file pymatgen-2024.11.13.tar.gz
.
File metadata
- Download URL: pymatgen-2024.11.13.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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 82637a8da316cb76024c9b2541e12644971a3bd388f502040738a97b73a54378 |
|
MD5 | da0e3381f0982a1c55433f1cac563ef2 |
|
BLAKE2b-256 | 9d953824c0879b0dccc7d960a418fc9bb37b487b6d233b82f146829741303a37 |
File details
Details for the file pymatgen-2024.11.13-cp312-cp312-win_amd64.whl
.
File metadata
- Download URL: pymatgen-2024.11.13-cp312-cp312-win_amd64.whl
- Upload date:
- Size: 3.6 MB
- Tags: CPython 3.12, Windows x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3d8ff27bd9ec52927677a754f319c1945c856c52ddb8121b06b05d1d3cb010cb |
|
MD5 | d2273c6d8362cf51e53f09b356ff043a |
|
BLAKE2b-256 | 7781a1ed5a8622755e1f12ae5cc0e915498f553724bf79ad7ed5fd35451321bc |
Provenance
The following attestation bundles were made for pymatgen-2024.11.13-cp312-cp312-win_amd64.whl
:
Publisher:
release.yml
on materialsproject/pymatgen
-
Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
pymatgen-2024.11.13-cp312-cp312-win_amd64.whl
- Subject digest:
3d8ff27bd9ec52927677a754f319c1945c856c52ddb8121b06b05d1d3cb010cb
- Sigstore transparency entry: 149136574
- Sigstore integration time:
- Predicate type:
File details
Details for the file pymatgen-2024.11.13-cp312-cp312-win32.whl
.
File metadata
- Download URL: pymatgen-2024.11.13-cp312-cp312-win32.whl
- Upload date:
- Size: 3.6 MB
- Tags: CPython 3.12, Windows x86
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | eff0da1c606454b5301c8aaa34762be9b2967a69fa3323193ab9ab554ee93237 |
|
MD5 | 9ea6e987929e527e772151b9db3f5ae3 |
|
BLAKE2b-256 | 2321fc9c77f3d15c9078035e604620f514d71de4ba08c74f1d3b22b769f7073b |
Provenance
The following attestation bundles were made for pymatgen-2024.11.13-cp312-cp312-win32.whl
:
Publisher:
release.yml
on materialsproject/pymatgen
-
Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
pymatgen-2024.11.13-cp312-cp312-win32.whl
- Subject digest:
eff0da1c606454b5301c8aaa34762be9b2967a69fa3323193ab9ab554ee93237
- Sigstore transparency entry: 149136542
- Sigstore integration time:
- Predicate type:
File details
Details for the file pymatgen-2024.11.13-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: pymatgen-2024.11.13-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 5.0 MB
- Tags: CPython 3.12, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1f41246601bc29ed2246f8500ceb311f228655c00a1602f8a8f55a13e7763769 |
|
MD5 | fa04c2899597fbe2b0366d37604d1cca |
|
BLAKE2b-256 | 79aff44d4271d8989cef0b0a524a10911f1db234ee4d622f2c19e6a807889d0f |
Provenance
The following attestation bundles were made for pymatgen-2024.11.13-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
:
Publisher:
release.yml
on materialsproject/pymatgen
-
Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
pymatgen-2024.11.13-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
- Subject digest:
1f41246601bc29ed2246f8500ceb311f228655c00a1602f8a8f55a13e7763769
- Sigstore transparency entry: 149136550
- Sigstore integration time:
- Predicate type:
File details
Details for the file pymatgen-2024.11.13-cp312-cp312-macosx_11_0_arm64.whl
.
File metadata
- Download URL: pymatgen-2024.11.13-cp312-cp312-macosx_11_0_arm64.whl
- Upload date:
- Size: 3.6 MB
- Tags: CPython 3.12, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d6ed76bea2abcf24f372dcd9f002347a569d69a35c77c835c4d8e4bd98d2b99b |
|
MD5 | 6039e22edafca0f524a754e4b87f1180 |
|
BLAKE2b-256 | 61e3607c6cf20b65f5979c1b424b8e44920f9a0570e4ed7222607b7f75ff3a73 |
Provenance
The following attestation bundles were made for pymatgen-2024.11.13-cp312-cp312-macosx_11_0_arm64.whl
:
Publisher:
release.yml
on materialsproject/pymatgen
-
Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
pymatgen-2024.11.13-cp312-cp312-macosx_11_0_arm64.whl
- Subject digest:
d6ed76bea2abcf24f372dcd9f002347a569d69a35c77c835c4d8e4bd98d2b99b
- Sigstore transparency entry: 149136534
- Sigstore integration time:
- Predicate type:
File details
Details for the file pymatgen-2024.11.13-cp311-cp311-win_amd64.whl
.
File metadata
- Download URL: pymatgen-2024.11.13-cp311-cp311-win_amd64.whl
- Upload date:
- Size: 3.6 MB
- Tags: CPython 3.11, Windows x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d3df445969fcb1d3a82e225ad1950c122a1b0bb7af51617f599fa2a66a3968ba |
|
MD5 | b9beb5c4dba31f2188b9fb2cf33f0fc7 |
|
BLAKE2b-256 | fb8360e1b3b76f934e70dc5af9097ddd0f6a25ca21d06a7e0eda9c41df987ea2 |
Provenance
The following attestation bundles were made for pymatgen-2024.11.13-cp311-cp311-win_amd64.whl
:
Publisher:
release.yml
on materialsproject/pymatgen
-
Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
pymatgen-2024.11.13-cp311-cp311-win_amd64.whl
- Subject digest:
d3df445969fcb1d3a82e225ad1950c122a1b0bb7af51617f599fa2a66a3968ba
- Sigstore transparency entry: 149136581
- Sigstore integration time:
- Predicate type:
File details
Details for the file pymatgen-2024.11.13-cp311-cp311-win32.whl
.
File metadata
- Download URL: pymatgen-2024.11.13-cp311-cp311-win32.whl
- Upload date:
- Size: 3.6 MB
- Tags: CPython 3.11, Windows x86
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a3e464004bf4752939e867b7d49af756f43a05b7ff87550b26f9f2d64c7c39ea |
|
MD5 | 29a4859a0c192b724f4b11a1cb5ee81c |
|
BLAKE2b-256 | 7082ed07ef53bc01b5f3f0d7f4167838fafdab774005c1202e311a5e6ef4619e |
Provenance
The following attestation bundles were made for pymatgen-2024.11.13-cp311-cp311-win32.whl
:
Publisher:
release.yml
on materialsproject/pymatgen
-
Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
pymatgen-2024.11.13-cp311-cp311-win32.whl
- Subject digest:
a3e464004bf4752939e867b7d49af756f43a05b7ff87550b26f9f2d64c7c39ea
- Sigstore transparency entry: 149136547
- Sigstore integration time:
- Predicate type:
File details
Details for the file pymatgen-2024.11.13-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: pymatgen-2024.11.13-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 5.1 MB
- Tags: CPython 3.11, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9eaa68375a28b146342c3cd7c772037a6413c0e3fa150185125cf12247d98024 |
|
MD5 | 8f9bc39adc1ed10d9e622072eeff9208 |
|
BLAKE2b-256 | 0ddfeeca3acad7b0e8b4b57ac978a4032a4e24be61bfc42860438ba1ebf87c45 |
Provenance
The following attestation bundles were made for pymatgen-2024.11.13-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
:
Publisher:
release.yml
on materialsproject/pymatgen
-
Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
pymatgen-2024.11.13-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
- Subject digest:
9eaa68375a28b146342c3cd7c772037a6413c0e3fa150185125cf12247d98024
- Sigstore transparency entry: 149136555
- Sigstore integration time:
- Predicate type:
File details
Details for the file pymatgen-2024.11.13-cp311-cp311-macosx_11_0_arm64.whl
.
File metadata
- Download URL: pymatgen-2024.11.13-cp311-cp311-macosx_11_0_arm64.whl
- Upload date:
- Size: 3.6 MB
- Tags: CPython 3.11, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ea3c465d705dbe833103bada06dbd7d1b9dc134b14bd6c995449cedd8b08129a |
|
MD5 | a8bee6e3b0a97acd968ca6ef7a7033a2 |
|
BLAKE2b-256 | 2e8d8d53799d669ab83bead52511fa5a35bd71c131482efbe3b2df363343c3d6 |
File details
Details for the file pymatgen-2024.11.13-cp310-cp310-win_amd64.whl
.
File metadata
- Download URL: pymatgen-2024.11.13-cp310-cp310-win_amd64.whl
- Upload date:
- Size: 3.6 MB
- Tags: CPython 3.10, Windows x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 62a593387e66a8f7302b95c49de45f52f0b86aeb100c2897ccc2905035aed6ae |
|
MD5 | d93fb3ea215c76d6f7764ae0ebdf2f19 |
|
BLAKE2b-256 | b6f2419b5ef8faded4fcb460adc82ab5a3de153a577b7626b7d233110669f6ad |
Provenance
The following attestation bundles were made for pymatgen-2024.11.13-cp310-cp310-win_amd64.whl
:
Publisher:
release.yml
on materialsproject/pymatgen
-
Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
pymatgen-2024.11.13-cp310-cp310-win_amd64.whl
- Subject digest:
62a593387e66a8f7302b95c49de45f52f0b86aeb100c2897ccc2905035aed6ae
- Sigstore transparency entry: 149136569
- Sigstore integration time:
- Predicate type:
File details
Details for the file pymatgen-2024.11.13-cp310-cp310-win32.whl
.
File metadata
- Download URL: pymatgen-2024.11.13-cp310-cp310-win32.whl
- Upload date:
- Size: 3.6 MB
- Tags: CPython 3.10, Windows x86
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4e7db7672b7adee868cd3552a068aca42ecba0059ba6583809faa15e9737a7cf |
|
MD5 | 28d3b8eae9e5264901bfbaa6b0a31f56 |
|
BLAKE2b-256 | 0300070ef459c16e79ab5762c0a1a439a8a960e7daaca812c13d0755f28c3896 |
Provenance
The following attestation bundles were made for pymatgen-2024.11.13-cp310-cp310-win32.whl
:
Publisher:
release.yml
on materialsproject/pymatgen
-
Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
pymatgen-2024.11.13-cp310-cp310-win32.whl
- Subject digest:
4e7db7672b7adee868cd3552a068aca42ecba0059ba6583809faa15e9737a7cf
- Sigstore transparency entry: 149136583
- Sigstore integration time:
- Predicate type:
File details
Details for the file pymatgen-2024.11.13-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: pymatgen-2024.11.13-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 4.9 MB
- Tags: CPython 3.10, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1bd9d8bb788700f8d4c739144a8ae55267f1c10df08aba588a9c3622056231cc |
|
MD5 | c1db7e8e73bfca1c238fed13b2533670 |
|
BLAKE2b-256 | c04846ebd0f4ba41a26f31c4f7d4bfbc547aeafb2bf9200601a18c6b35955640 |
Provenance
The following attestation bundles were made for pymatgen-2024.11.13-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
:
Publisher:
release.yml
on materialsproject/pymatgen
-
Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
pymatgen-2024.11.13-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
- Subject digest:
1bd9d8bb788700f8d4c739144a8ae55267f1c10df08aba588a9c3622056231cc
- Sigstore transparency entry: 149136563
- Sigstore integration time:
- Predicate type:
File details
Details for the file pymatgen-2024.11.13-cp310-cp310-macosx_11_0_arm64.whl
.
File metadata
- Download URL: pymatgen-2024.11.13-cp310-cp310-macosx_11_0_arm64.whl
- Upload date:
- Size: 3.6 MB
- Tags: CPython 3.10, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3561edc1c6222706b0689996023c012a79e6170aed6b0b6c4023b9971d1785ca |
|
MD5 | 1d5374574e476f3a65fbc685687d9c9f |
|
BLAKE2b-256 | a493fe50f123cbd65846917077ba752c750c95676bc108c057366d779ceb7b9a |
Provenance
The following attestation bundles were made for pymatgen-2024.11.13-cp310-cp310-macosx_11_0_arm64.whl
:
Publisher:
release.yml
on materialsproject/pymatgen
-
Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
pymatgen-2024.11.13-cp310-cp310-macosx_11_0_arm64.whl
- Subject digest:
3561edc1c6222706b0689996023c012a79e6170aed6b0b6c4023b9971d1785ca
- Sigstore transparency entry: 149136539
- Sigstore integration time:
- Predicate type: