MaterialsAtlas Python client
Download materials property datasets, source-filtered CIF archives, and normalized OPTIMADE structures from MaterialsAtlas.
pip install materialsatlas-datasets
# Optional pandas/Parquet support:
pip install 'materialsatlas-datasets[data]'
# Optional pymatgen Structure objects:
pip install 'materialsatlas-datasets[structures]'
Named property datasets
from materialsatlas import get_available_datasets, download_dataset, load_dataset
names = get_available_datasets()
path = download_dataset("band_gap") # Cached Parquet + metadata receipt
df = load_dataset("curie_temperature") # pandas DataFrame; install [data]
Full tables can contain millions of rows. Prefer Parquet batch reads or DuckDB for large datasets instead of loading them entirely into pandas.
Filtered records and matching CIFs
from materialsatlas import MaterialsAtlas
with MaterialsAtlas() as atlas:
job = atlas.export(
property="band_gap",
property_source="materials-project",
elements=["Li", "O"],
include_cifs=True,
format="parquet",
)
print(job.id)
files = job.download("./downloads")
# All structures held by OQMD; this may be a large export.
files = atlas.download_cifs(structure_source="oqmd", directory="./downloads")
Downloads support resume and SHA-256 verification. Repeated exports reuse the
server cache. Archives are not extracted automatically. Resume a queued export
with atlas.job(export_id).download(...). Temporary exports normally expire
after seven days; the service returns the exact expiry.
Use MaterialsAtlas(release="<revision>") to pin a release. Every export retains
its resolved revision, query, row counts, distinct structure count, checksums,
methods, source identifiers, and licensing metadata. Multiple values per
structure are preserved, not averaged.
OPTIMADE and pymatgen
with MaterialsAtlas() as atlas:
for record in atlas.optimade('elements HAS ALL "Li", "O" AND nelements=2'):
print(record["id"], record["attributes"]["chemical_formula_reduced"])
# Optional pymatgen integration: use an ID returned by the service.
record = next(atlas.iter_structures(elements=["Si"], page_size=1))
structure = atlas.get_structure(record["material_id"])
The OPTIMADE endpoint serves the active normalized release; raw CIFs remain available for source records that cannot be normalized. This client provides data access and optional pymatgen integration; it is not a replacement for pymatgen's computational materials tools.
Predictions and provenance
with MaterialsAtlas() as atlas:
tasks = atlas.predictions()
path = atlas.download_prediction("lattice_thermal_conductivity__gga")
ML prediction tables are explicit, separate downloads. They are not experiments or new DFT calculations. Source-property exports include only records labelled open by the upstream publisher. Their original record-level terms still apply.
property_source selects who reported a property; structure_source selects
database membership; origin_source selects the stored CIF's recorded origin.
These are different filters. The first collection is AI4QC/MateriaViva-Open;
it aggregates records from original providers. Cite both the collection and
the relevant providers, and retain the downloaded attribution/licence fields.
Configuration
MaterialsAtlas(base_url=..., release=..., cache_dir=..., timeout=120)MATERIALSATLAS_CACHE: override the default~/.cache/materialsatlasdirectory.- Network operations retry bounded transient failures. Expensive export failures and quota limits are reported explicitly.
Client software: MIT. Dataset licences are independent of the software licence.
Metadata
Release files for materialsatlas-datasets 0.1.0
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 | Actions |
|---|---|---|---|---|
| materialsatlas_datasets-0.1.0.tar.gz | 8.6 kB | With provenance | Details for materialsatlas_datasets-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| materialsatlas_datasets-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for materialsatlas_datasets-0.1.0-py3-none-any.whl |
Total release size: 17.6 kB
Release files / materialsatlas_datasets-0.1.0.tar.gz
| Download URL | materialsatlas_datasets-0.1.0.tar.gz |
|---|---|
| Size | 8.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bbd9241b3c428a2a110efb4a7648c58a06a7dac840963879b78e5da31f0b5603
|
|
BLAKE2b-256 checksum How to use checksums |
9f9d7a6460764aea90773e60b59c768eef8d43dbb646166139e0b47fca5cb405
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 2, 2026.
Transparency logRelease files / materialsatlas_datasets-0.1.0-py3-none-any.whl
| Download URL | materialsatlas_datasets-0.1.0-py3-none-any.whl |
|---|---|
| Size | 9.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
459b54662f07a78dbe147940a54373df9c9145e47a0f1a6b4775496a3a1c8e4c
|
|
BLAKE2b-256 checksum How to use checksums |
884f579a1142d888f0c81162ea22f2c8c4ab50906c12b95bfc2658923f5c028c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 2, 2026.
Transparency logSecurity for materialsatlas-datasets 0.1.0
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
Both files in this release have been uploaded with provenance metadata.
Attestation for materialsatlas_datasets-0.1.0.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 Nov 2, 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.