Registry / web-framework / dash-mp-components

dash-mp-components

JSON →
library0.5.2pypypiunverified

Dash components for the Materials Project, providing interactive UI elements to access and visualize materials data. Current version is 0.5.1, with releases triggered by Git tags via CI/CD. The library wraps common Materials Project API features into Dash components.

pip install dash-mp-components
INSTALL
IMPORT
SIG · DASH-MP-COMPONENTS
D
dash-mp-components
web-frameworkpythonv0.5.2
Install
1.7s avg
Import
—
Disk
36MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.9–3.13
musl
3.9–3.13
Install & Compatibility
Where this runs
tested against v0.5.2 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.10–3.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 37.9MB
glibc
py 3.10–3.95 runs
installs and imports cleanly · install 1.7s · import 0.000s · 38MB
36MB installed
● package 36MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

MPElementCard
✓ from dash_mp_components import MPElementCard
✗ from dash_mp_components import MPElementCard

Minimal Dash app with an MPElementCard showing silicon data. Requires a valid Materials Project API key.

import dash from dash import html from dash_mp_components import MPElementCard app = dash.Dash(__name__) app.layout = html.Div([ MPElementCard(element='Si', api_key=os.environ.get('MP_API_KEY', 'your-key-here')) ]) if __name__ == '__main__': app.run_server(debug=True)
Debug
Known issues
breakingVersion 0.5.0+ changed the import path from 'dash_mp_components' to a different package structure; ensure you use the correct top-level import as shown in the docs.
fix
Use 'from dash_mp_components import ComponentName' rather than any nested submodule imports.
affects: >=0.5.0
gotchaComponents require a Materials Project API key (MP_API_KEY environment variable or 'api_key' prop). Without it, components will fail silently or show an error state.
fix
Set the MP_API_KEY environment variable or pass api_key as a prop to each component.
affects: all
deprecatedThe 'api_key' prop is deprecated in favor of using the global key via the environment variable. Future versions may remove the prop entirely.
fix
Set the MP_API_KEY environment variable instead of passing api_key as a prop.
affects: >=0.5.0
gotchaComponents are not reactive to prop changes after initialization; you must recreate the component to update data.
fix
Use Dash callbacks to rebuild the component layout when data dependencies change.
affects: all
Upgrade
Version history
0.5.2latest on PyPI · released Jun 9, 2026
Audit
Dependencies
dashrequiredCore framework required to run Dash apps
mp-apirequiredProvides Materials Project API client for data access
Agent activity
10 hits · last 30 days
node
8
OpenAI (training)
1
Resources
dash-mp-components — pip install dash-mp-components · libregistry