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

  • SchemaMaterial, 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 graphsCrystalGraphBuilder 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 layerMatterGraphDataset 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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mattergraph_core-0.1.1.tar.gz (45.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mattergraph_core-0.1.1-py3-none-any.whl (62.0 kB view details)

Uploaded Python 3

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

Hashes for mattergraph_core-0.1.1.tar.gz
Algorithm Hash digest
SHA256 17269f5f21169b28f6cf3f092bae2181d75882a30636efe14f5300c1415bfa63
MD5 c18e93660e0202d855bc0a7da9f43876
BLAKE2b-256 62f21b4b102c60395c0b9b45c005e296358b0db4a924b4d841ad2eb2789411e8

See more details on using hashes here.

Provenance

The following attestation bundles were made for mattergraph_core-0.1.1.tar.gz:

Publisher: release.yml on cyrusmo/MatterGraph

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file mattergraph_core-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for mattergraph_core-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 fa0372ddcce835d7580517adbacfeba6ebfa17ccd192a513f2f3fb52cf91c201
MD5 eeb6fc788d564fd122828115617d6d79
BLAKE2b-256 e54960fa57f0ab648da8bd51f11108dbbf0587dfa0eedee0989aa49b683f1780

See more details on using hashes here.

Provenance

The following attestation bundles were made for mattergraph_core-0.1.1-py3-none-any.whl:

Publisher: release.yml on cyrusmo/MatterGraph

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 files

0.1.0

2 files

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