pymatgen
यह क्या करती है
यह tool materials के बारे में डेटा का विश्लेषण और व्यवस्थित करने में मदद करता है। यह जानकारी जांच सकता है, formats बदल सकता है, और संरचनाओं व रासायनिक यौगिकों के गुणों को समझ सकता है।
कब इस्तेमाल करें
- ✓जब आपके पास material का डेटा हो और आप उसका सही होना सुनिश्चित करना चाहते हों।
- ✓डेटा को एक format से दूसरे format में बदलने की ज़रूरत हो तब।
- ✓किसी material की संरचना और गुणों को समझने के लिए।
Skill का लिंक
https://github.com/K-Dense-AI/scientific-agent-skills/blob/main/skills/pymatgen/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“इस material structure फाइल का विश्लेषण करो और मुझे उसके गुण बताओ।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
tool materials की जानकारी पढ़ने, जांचने और उसमें बदलाव करने के लिए नियमों और functions के सेट का इस्तेमाल करता है। यह सुनिश्चित करता है कि सटीकता बनाए रखने के लिए हर चरण दर्ज हो।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
pymatgen
Use pymatgen for explicit, provenance-preserving work with compositions, molecules, periodic structures, computed entries, symmetry, phase diagrams, electronic structures, and electronic-structure-code files. Treat every parse, conversion, symmetry assignment, transformation, and database result as method- and parameter-dependent.
The MIT frontmatter license covers this skill. pymatgen and
pymatgen-core are MIT; mp-api declares BSD-3-Clause-LBNL. Materials Project
data is generally CC BY 4.0, while contributed data remains owned by its
contributors. Check the exact artifact and data terms before redistribution.
Verified snapshot (2026-09-30)
pymatgen==2026.9.24is the latest stable wrapper release (uploaded 2026-09-23). Package metadata requires Python 3.11+ and directly requirespymatgen-core>=2026.9.23.pymatgen-core==2026.9.23is the latest stable core release (2026-09-23). It now contains core objects, symmetry/lattice operations, and the I/O layer, all under the existingpymatgen.*namespace.mp-api==0.46.5is the latest stable Materials Project client (2026-08-18), requires Python 3.11+, and depends onpymatgen>2024.2.20.- The current API site is built from 2026.9.23 core documentation. Pinning both
distributions prevents
pymatgen==2026.9.24from silently resolving to a different future core. - Pymatgen uses date-based versions. PyPI renders the date with dots; do not infer semantic-version compatibility from the numbers.
The local CLI suite and synthetic examples were executed on this snapshot. File-dependent VASP/Q-Chem parses and authenticated API examples below are illustrative: their signatures and current SDK source were checked, but no licensed calculation or authenticated service retrieval was performed.
Create a project lock for reproducibility:
uv init --python 3.11
uv add "pymatgen==2026.9.24" "pymatgen-core==2026.9.23" "mp-api==0.46.5"
uv lock
uv sync --frozen
For a disposable reviewed environment:
uv venv --python 3.11 .venv-pymatgen
uv pip install --python .venv-pymatgen/bin/python \
"pymatgen==2026.9.24" "pymatgen-core==2026.9.23" "mp-api==0.46.5"
Direct pins do not freeze all transitive wheels. Preserve uv.lock, platform,
Python version, package versions, and artifact hashes.
Required workflow
- State whether the object is a non-periodic
Moleculeor periodicStructure; record lattice and periodic boundary conditions. - State units. Pymatgen commonly uses Å, degrees, eV, eV/atom, amu, and g/cm³, but each API's documented contract is authoritative.
- State coordinate mode.
Structurecoordinates are fractional unlesscoords_are_cartesian=True;Moleculecoordinates are Cartesian. - Inspect every parser warning. For CIF, preserve occupancy, site-merging, stoichiometry, and correction warnings; do not silently accept fixes.
- Report disorder/partial occupancies and oxidation-state decoration. Never guess oxidation states implicitly.
- Run validation before symmetry, neighbor, transformation, conversion, or thermodynamic analysis.
- Sweep symmetry tolerances and report
symprecin Å andangle_tolerancein degrees with every assignment. - Treat transformations as new artifacts. Preserve the input, parameters, software versions, warnings, and parent/child checksums.
- Before conversion, identify representation loss. Write only to a new path and round-trip-check scientifically relevant properties.
- Build phase diagrams only from compatible total energies and correction schemes. A computed hull is conditional on the supplied entry set.
- Keep all database access off by default. Disclose endpoint, filters, fields, result limit, cache behavior, output, license, and citation before an explicit execution step.
- Preserve an artifact manifest. Never use pickle or load an untrusted general object graph; use schema-validated JSON and explicit constructors.
Core objects
Use the public convenience imports:
from pymatgen.core import Composition, Element, Lattice, Molecule, Structure
composition = Composition("LiFePO4", strict=True)
iron = Element("Fe")
lattice = Lattice.cubic(5.64) # Å
structure = Structure(
lattice,
["Na", "Cl"],
[[0, 0, 0], [0.5, 0.5, 0.5]],
coords_are_cartesian=False,
validate_proximity=True,
)
molecule = Molecule(
["O", "H", "H"],
…
अक्सर पूछे जाने वाले सवाल
इस संदर्भ में 'structures' और 'compounds' क्या हैं?
Structures का मतलब है पदार्थों के परमाणुओं की व्यवस्था, यानी वे अंतरिक्ष में कैसे व्यवस्थित हैं। Compounds वे रासायनिक तत्वों के मेल हैं जिनसे ये पदार्थ बनते हैं।
हर चरण को दर्ज करना क्यों ज़रूरी है?
हर चरण को दर्ज करना (provenance) यह जानने में मदद करता है कि नतीजे किस तरह मिले, ताकि दूसरे लोग आपके काम की जांच या दोहराव भरोसे के साथ कर सकें।
क्या इसे non-crystalline materials के लिए इस्तेमाल कर सकते हैं?
हां, tool periodic structures (जैसे crystals) और non-periodic molecules, दोनों को संभाल सकता है।
जानकारी
लेखक का मूल विवरण
Analyzes, validates, converts, and transforms materials structures and computed materials data with pymatgen. Use for local phase diagrams, symmetry sensitivity, electronic-structure I/O, and bounded Materials Project queries.
लोकप्रियता
- GitHub स्टार
- 51k
- रैंकिंग में स्थान
- #3542
- लाइसेंस
- MIT
- अपडेट की गई
- 15/10/2026
कमेंट
- …
इस repository की और skills
13c-metabolic-flux
51kकार्बन-13 आइसोटोप ट्रेसिंग डेटा से मेटाबोलिक फ़्लक्स का अनुमान लगाता है। कोशिका के मेटाबॉलिज़्म और बायोकेमिकल मार्गों का विश्लेषण करने के लिए यह उपयोगी है।
adaptyv
51kAdaptyv API का उपयोग करके प्रोटीन कैरेक्टराइज़ेशन प्रयोग डिज़ाइन करता है। लागत का अनुमान लगाने, सीक्वेंस सबमिट करने और लैब के नतीजों पर नज़र रखने में मदद करता है।
aeon
51kटाइम सीरीज़ डेटा पर मशीन लर्निंग के काम करता है। क्रमबद्ध डेटा में वर्गीकरण, पूर्वानुमान, एनोमली डिटेक्शन और पैटर्न खोजने के लिए यह उपयोगी है।
alphagenome
51kजेनेटिक वेरिएंट्स के पहले से गणना किए गए जीनोमिक प्रभाव देखता है। वेरिएंट का जीनोम पर असर समझने के लिए स्कोर और स्पष्टीकरण देता है।
मिलती-जुलती skills
pytorch-patterns
280kआपके एजेंट को machine learning models के लिए PyTorch इस्तेमाल करने में मदद करता है। कुशल model training के best practices लागू करता है और नतीजों को दोहराने लायक रखता है।
evm-token-decimals
280kयह आपके एजेंट को अलग-अलग blockchain networks पर decimal numbers की गलतियों से बचने में मदद करता है। यह transactions और calculations में token values सही रखने का ध्यान रखता है।
ito-inference
280kआपके एजेंट को AI models की उपलब्धता जाँचने देता है। यह compute request को तैयार model service से जोड़ता है।