Comparison
diffpy.structure vs gemmi vs pymatgen
Maintenance, adoption and momentum side by side, from PyPI, GitHub and deps.dev data refreshed every day.
Crystal structure container and parsers for structure formats.
Actively maintained. Last release 12 days ago, commits in 4 of the last 26 weeks. A safe choice.
pip install diffpy-structurelibrary for structural biology
Maintained. Last release 9 months ago, commits in 8 of the last 26 weeks. Weaker on release cadence.
pip install gemmiPython 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).
Actively maintained. Last release 6 weeks ago, commits in 17 of the last 26 weeks. A safe choice.
pip install pymatgenIn short
- gemmi is the most used: 1.8M downloads a month.
- pymatgen is better maintained: Pythie’s Index 81 against 59.
- diffpy.structure is growing fastest: downloads +106% over the last month.
Side by side
| Metric | diffpy.structure | gemmi | pymatgen |
|---|---|---|---|
| Pythie’s Index | Pythie’s Index: 75 | Pythie’s Index: 59 | Pythie’s Index: 81 |
| Verdict | Actively maintained | Maintained | Actively maintained |
| Downloads / month | 79.4K | 1.8M | 1.2M |
| Downloads, month over month | +106% | +10% | +56% |
| GitHub stars | 40 | 402 | 2K |
| Stars, last 7 days | – | – | – |
| Direct dependents | 20 | 186 | 425 |
| Last release | Nov 20, 2026 | Mar 2, 2026 | Oct 23, 2026 |
| Releases, 12 months | 6 | 1 | 5 |
| Weeks with commits | 4 / 26 | 8 / 26 | 17 / 26 |
| Recent contributors | 4 | 8 | 15 |
| First release | Mar 2014 | Mar 2018 | Nov 2011 |
| Python versions | 3.12 – 3.14 | – | 3.11 – 3.14 |
| License | non-standard | MPL-2.0 | MIT |
| Known vulnerabilities | None | None | None |
Bold marks the best value in each row. Pythie’s Index rates maintenance out of 100: how it works.