mattergraph-core
Core schema, normalization, and crystal graphs for MatterGraph — an open-source SDK for physics-aware, provenance-aware materials workflows.
What's in here
- Schema —
Material,MaterialProperty,ProvenanceRecord,CrystalStructure,SimulationJobRef. Pydantic v2 models with strict validation (extra="forbid"), designed so multiple sources can report the same property without collapsing provenance. - Normalization — unit conversion (energy, length, pressure, density, temperature), formula standardization, and canonical property names.
- Crystal graphs —
CrystalGraphBuilderturns a pymatgenStructureinto a periodic neighbor graph with atom and edge features. Emits plain NumPy, so there is no PyG/DGL dependency. - Workflow layer —
MatterGraphDatasetandCandidateSlice: chainable, audited filters that produce reproducible, content-hashed candidate slices. - Scoring — a deliberately transparent
Scorecardbaseline (min–max normalized objectives plus hard constraints). Not a production decision engine.
Install
pip install mattergraph-core
Example
from mattergraph import MaterialStore, Scorecard
store = MaterialStore.from_demo()
scorecard = Scorecard(
objectives={"density": "minimize", "bulk_modulus": "maximize"},
constraints={"energy_above_hull": {"max": 0.05}},
)
print(scorecard.rank(store.materials).head())
License
Apache-2.0
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mattergraph_core-0.1.1.tar.gz.
File metadata
- Download URL: mattergraph_core-0.1.1.tar.gz
- Upload date:
- Size: 45.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
17269f5f21169b28f6cf3f092bae2181d75882a30636efe14f5300c1415bfa63
|
|
| MD5 |
c18e93660e0202d855bc0a7da9f43876
|
|
| BLAKE2b-256 |
62f21b4b102c60395c0b9b45c005e296358b0db4a924b4d841ad2eb2789411e8
|
Provenance
The following attestation bundles were made for mattergraph_core-0.1.1.tar.gz:
Publisher:
release.yml on cyrusmo/MatterGraph
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mattergraph_core-0.1.1.tar.gz -
Subject digest:
17269f5f21169b28f6cf3f092bae2181d75882a30636efe14f5300c1415bfa63 - Sigstore transparency entry: 2778666884
- Sigstore integration time:
-
Permalink:
cyrusmo/MatterGraph@8586bcedc29d242c1f529d9dc72a0511d6f272b0 -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/cyrusmo
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@8586bcedc29d242c1f529d9dc72a0511d6f272b0 -
Trigger Event:
push
-
Statement type:
File details
Details for the file mattergraph_core-0.1.1-py3-none-any.whl.
File metadata
- Download URL: mattergraph_core-0.1.1-py3-none-any.whl
- Upload date:
- Size: 62.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fa0372ddcce835d7580517adbacfeba6ebfa17ccd192a513f2f3fb52cf91c201
|
|
| MD5 |
eeb6fc788d564fd122828115617d6d79
|
|
| BLAKE2b-256 |
e54960fa57f0ab648da8bd51f11108dbbf0587dfa0eedee0989aa49b683f1780
|
Provenance
The following attestation bundles were made for mattergraph_core-0.1.1-py3-none-any.whl:
Publisher:
release.yml on cyrusmo/MatterGraph
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mattergraph_core-0.1.1-py3-none-any.whl -
Subject digest:
fa0372ddcce835d7580517adbacfeba6ebfa17ccd192a513f2f3fb52cf91c201 - Sigstore transparency entry: 2778667645
- Sigstore integration time:
-
Permalink:
cyrusmo/MatterGraph@8586bcedc29d242c1f529d9dc72a0511d6f272b0 -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/cyrusmo
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@8586bcedc29d242c1f529d9dc72a0511d6f272b0 -
Trigger Event:
push
-
Statement type: