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

Uploaded Source

Built Distributions

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

Uploaded CPython 3.12 Windows x86-64

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

Uploaded CPython 3.12 Windows x86

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

Uploaded CPython 3.12 macOS 11.0+ ARM64

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

Uploaded CPython 3.11 Windows x86-64

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

Uploaded CPython 3.11 Windows x86

pymatgen-2024.9.17.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (5.0 MB view details)

Uploaded CPython 3.11 manylinux: glibc 2.17+ x86-64

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

Uploaded CPython 3.11 macOS 11.0+ ARM64

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

Uploaded CPython 3.10 Windows x86-64

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

Uploaded CPython 3.10 Windows x86

pymatgen-2024.9.17.1-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.9.17.1-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.9.17.1.tar.gz.

File metadata

  • Download URL: pymatgen-2024.9.17.1.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.9.17.1.tar.gz
Algorithm Hash digest
SHA256 87966bd3839afb32ec30a7548f630452fe98420b97edc9df8d12602b1472975d
MD5 50eb8867d99ffc3707af0128fb219fff
BLAKE2b-256 02efeb4cd347a5faa06b21e88f5036ce8fe18df380b59908700a737508fe93b1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pymatgen-2024.9.17.1-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 57101b1b93d893da8d9b9de17e74f6fd96c05a06fe236e9716539af1ead4f86d
MD5 29a2429c1b566fe818c4debea2755523
BLAKE2b-256 43cea9294d4792d6bced6e22f7bacb5ea417c43c5d1eb081138b60f798fabb36

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pymatgen-2024.9.17.1-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 37249e40a224495e2b2971030aaaaca381dabf28bff2f73a71621f5306849b05
MD5 b5e78448536a6634da5b3a6fabc57864
BLAKE2b-256 bcf45ed69fa97169d604328842d9391d542f12dd9633dcc9e9b15c4638fa0faf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pymatgen-2024.9.17.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 31125995250eb2a5680a5457a1cf113a7adffd14acc42966dc38d781b1a6461c
MD5 6f6c3f7cb62264f3fb8509dfce8ae283
BLAKE2b-256 faaaf981b154dfde99a1c54638319c81785585e3b5b968da43e1b335f294740d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pymatgen-2024.9.17.1-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 96743b65e12f39babfb6e7830831f7a126c7f97a66f183214f3272f30dd10f4e
MD5 8e10cec93b8998169fdae0565caba52a
BLAKE2b-256 6ecffb6e7d518215016d476121a89370a310480ed0b1003e76a8b38519483ab5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pymatgen-2024.9.17.1-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 9f1d0af75eda65ffccc85e31869ae196b26f072c2d4ce0286a48bf892f0a7282
MD5 8782a10e5c4c3a121a6b5838106a85cc
BLAKE2b-256 4aa865b32375dcc9dcde26a411408eec54266820ab519022c89be649b6e58f50

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pymatgen-2024.9.17.1-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 b79bd616d25ec1ee0bf1cc341ef006a1a2df96cd698d71824eebd2e5747cdd3b
MD5 d595ce6943a5c29c2fec3022da1301bf
BLAKE2b-256 2c5e2fd9b91703c4236a8f6b177dba052adab254e459b8dc02fd32a23038b57a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pymatgen-2024.9.17.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 81a41317c5acedd3dfa5c4ef978561ee15e68c749d42e6eab7661eacb98bb4aa
MD5 89ac8123e0f42edeeeaa477e36c0ae1f
BLAKE2b-256 02c86dd268a5f71d0b8bbb370a9dcbcfd7501270049a53d1399ed6cf46fff0b1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pymatgen-2024.9.17.1-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b64df7f9030bd3f109f02d88bbe1d9bbb10adfdd8156ff74d276e350112e3829
MD5 91b54f266ba548f9ed54f067db0cb40d
BLAKE2b-256 7defbb7fa8a1f36bdf1556511aebf5307711f8d88d5e078e3a58abbf5dbe5607

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pymatgen-2024.9.17.1-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 228d5757151107dac12a052bc5b0ea7fc35ca2f208da7464b48391ce8414367c
MD5 cf82b3806d41137b8809598ddbc2cf21
BLAKE2b-256 4cf76a3a0213c155ba488bce845115a8e33473f76576d2aa49a48c9428e32e4a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pymatgen-2024.9.17.1-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 304c07e784c9ab8342086f291bb9ed20257f5bebd2e536b06eb1008f808b503e
MD5 8a52e380edc5d962c4f7fd754ec1c7e2
BLAKE2b-256 1614772aa38f98f64a9cabcfdc55f4f931103b4713105e2e0f8a08f34d42dcc4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pymatgen-2024.9.17.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 b14544c959700e0b8557451ac8403e423f53df0cc2ee13e68dd7f246400a1d0b
MD5 fe36220b1dc742c2164c2d1c13f63a86
BLAKE2b-256 30e971d6f449a0c268503d6b313f89196f3141a9dcb087b98cb540c2282b8e2b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pymatgen-2024.9.17.1-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 97497f018472aeed97f866a8b8cb43759d6e70939ab2b6239647bfed01c988a4
MD5 73e9f2f208c102a8e4562709711ba616
BLAKE2b-256 ceda147abd178f7b35e900b385eee60460052debdb31d1d9bd5f168435f6bd0d

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