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.0.tar.gz (25.9 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.0-py3-none-any.whl (37.2 kB view details)

Uploaded Python 3

File details

Details for the file mattergraph_core-0.1.0.tar.gz.

File metadata

  • Download URL: mattergraph_core-0.1.0.tar.gz
  • Upload date:
  • Size: 25.9 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.0.tar.gz
Algorithm Hash digest
SHA256 fc606a8bc29f10f6677b49f1da29ce151d2b4b0aa42483776e28e5764ffa2c4e
MD5 25d3bda43c8e18a12ea0b866c8f3fe1e
BLAKE2b-256 f19d7b74e89e2f0fa8680646a358c57258ccc1a9971b9dc52f60aea2ca45fa71

See more details on using hashes here.

Provenance

The following attestation bundles were made for mattergraph_core-0.1.0.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.0-py3-none-any.whl.

File metadata

File hashes

Hashes for mattergraph_core-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f8969635374f7d6ef9673e6f13f7258a434766553b11956ad5b3b6863a8d752c
MD5 5ce22c433c2cebfd62cd65cc2204b90a
BLAKE2b-256 42748f53b0df158c50a40047f50060cf054120cd2a6d631c677918a90e6918e7

See more details on using hashes here.

Provenance

The following attestation bundles were made for mattergraph_core-0.1.0-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

0.1.1

2 files

This release

0.1.0 This release

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