mattergraph-api
FastAPI demo service for MatterGraph.
This is a demonstration surface, not a production service: storage is an in-memory store loaded from a JSONL fixture, and the persistence layer under mattergraph_api/db/ is a placeholder for installations that need one.
Routes
| Route | Purpose |
|---|---|
GET /health |
Liveness |
GET /materials, GET /materials/{mid} |
Browse normalized records |
GET /search?element= |
Filter by element |
POST /scores/rank |
Rank candidates with objectives, constraints, and weights |
POST /simulations/ase/relax |
Run an ASE relaxation (503 if ase is unavailable) |
GET /workflows/lematerial/demo |
End-to-end LeMat-Bulk screening walkthrough |
Install and run
pip install mattergraph-api
uvicorn mattergraph_api.main:app --host 0.0.0.0 --port 8000
The default API uses the packaged, checksummed 24-record LeMaterial example. Set
MATTERGRAPH_DEMO_DATA only when intentionally replacing it with a custom JSONL store.
License
Apache-2.0
Metadata
Release files for mattergraph-api 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| mattergraph_api-0.1.1.tar.gz | 25.7 kB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| mattergraph_api-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 50.9 kB
Release files / mattergraph_api-0.1.1.tar.gz
| Download URL | mattergraph_api-0.1.1.tar.gz |
|---|---|
| Size | 25.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d0154a08be4fe1c939115dd41d4e88af68c2769fb84ab7979313afc74f900d9a
|
|
BLAKE2b-256 checksum How to use checksums |
5654c439723cae2e492c990a76e7b17b1fe6ca1803591f7d675ce3c4612ac36b
|
| 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 logRelease files / mattergraph_api-0.1.1-py3-none-any.whl
| Download URL | mattergraph_api-0.1.1-py3-none-any.whl |
|---|---|
| Size | 25.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
fad8197b13d679238891faf8a2e61fb29059e9b56fa4f609252336934591cefb
|
|
BLAKE2b-256 checksum How to use checksums |
97bba648ae7cbe34cd55bd4b1f8813fbaf28d71f7116d45aa9b10c3f345c7cfe
|
| 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 logSecurity for mattergraph-api 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.
Attestation for mattergraph_api-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 logA 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.