Contribute Data
How to contribute your own user-created data to the Materials Project (MP database/website.
Interactively
Programmatically
Quickstart
from mpcontribs.client import Client
client = Client(project="my_test_project")
columns = {"a": "eV", "b.c": None, "b.d": ""}
client.init_columns(columns)
contributions = [{
"identifier": "mp-4",
"data": {
"a": "3 eV",
"b": {"c": "hello", "d": 3}
},
"structures": [`pymatgen.core.Structure`, ...],
"tables": [`pandas.DataFrame`, ...],
"attachments": [`pathlib.Path`, `mpcontribs.client.Attachment`, ...]
}]
client.submit_contributions(contributions)
client.init_columns(columns) # shouldn't be needed but ensures all columns appearStep-by-step instructions
API Docs Page
Last updated
Was this helpful?