Skip to main content

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 — CrystalGraphBuilder turns a pymatgen Structure into a periodic neighbor graph with atom and edge features. Emits plain NumPy, so there is no PyG/DGL dependency.
  • Workflow layer — MatterGraphDataset and CandidateSlice: chainable, audited filters that produce reproducible, content-hashed candidate slices.
  • Scoring — a deliberately transparent Scorecard baseline (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

Metadata

Release files for mattergraph-core 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mattergraph-core 0.1.1
File Size Uploaded Provenance
mattergraph_core-0.1.1.tar.gz 45.8 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for mattergraph-core 0.1.1
File Interpreter ABI Platform
mattergraph_core-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 107.8 kB

Release files / mattergraph_core-0.1.1.tar.gz

Download URL mattergraph_core-0.1.1.tar.gz
Size 45.8 kB
Tags Source
SHA-256 checksum
How to use checksums
17269f5f21169b28f6cf3f092bae2181d75882a30636efe14f5300c1415bfa63
BLAKE2b-256 checksum
How to use checksums
62f21b4b102c60395c0b9b45c005e296358b0db4a924b4d841ad2eb2789411e8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 10, 2026.

Transparency log

Release files / mattergraph_core-0.1.1-py3-none-any.whl

Download URL mattergraph_core-0.1.1-py3-none-any.whl
Size 62.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fa0372ddcce835d7580517adbacfeba6ebfa17ccd192a513f2f3fb52cf91c201
BLAKE2b-256 checksum
How to use checksums
e54960fa57f0ab648da8bd51f11108dbbf0587dfa0eedee0989aa49b683f1780
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 10, 2026.

Transparency log

Security for mattergraph-core 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for mattergraph_core-0.1.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 10, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page