Registry / analytics / crystal-toolkit

crystal-toolkit

JSON →
library2026.4.30pypypi✓ verified 80d ago

Crystal Toolkit is a web app framework from the Materials Project that allows Python developers to build interactive web applications for materials science. It provides components for visualizing crystal structures, phase diagrams, and other materials data. The current version is 2026.4.30, with a relatively frequent release cadence tied to the Materials Project ecosystem.

pip install crystal-toolkit
INSTALL
IMPORT
SIG · CRYSTAL-TOOLKIT
C
crystal-toolkit
analyticspythonv2026.4.30
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

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

CrystalToolkitPlugin
from crystal_toolkit import CrystalToolkitPlugin
from crystal_toolkit import CrystalToolkit

Minimal app that displays a silicon crystal structure using Crystal Toolkit and Dash.

import os from crystal_toolkit import CrystalToolkit from pymatgen.core import Structure app = CrystalToolkit(debug=os.environ.get('DEBUG', False)) # Create a simple crystal structure si = Structure.from_spacegroup('Fd-3m', [[0,0.5,0.5],[0.5,0,0.5],[0.5,0.5,0]], ['Si']) # Add a structure viewer component @app.callback @app.structure_viewer(si) def display_structure(): return 'Hello from Crystal Toolkit' if __name__ == '__main__': app.run()
Debug
Known issues
breakingCrystal Toolkit 2024+ dropped support for Python 3.9 and earlier. Requires Python >=3.10.
fix
Upgrade to Python 3.10 or newer before installing crystal-toolkit.
affects: >=2024.0.0
deprecatedThe legacy `CrystalToolkitApp` class has been removed. Use `CrystalToolkit` instead.
fix
Replace `from crystal_toolkit import CrystalToolkitApp` with `from crystal_toolkit import CrystalToolkit`.
affects: >=2025.0.0
gotchaDo not install crystal-toolkit and dash separately as different versions may conflict. Let crystal-toolkit manage dash version.
fix
Install only crystal-toolkit; dash is pulled as dependency.
affects: all
Upgrade
Version history
2026.4.30latest on PyPI · released Apr 30, 2026
Audit
Dependencies
dashrequiredCore web framework dependency
pymatgenrequiredMaterials analysis library used for crystal structures
Agent activity
46 hits · last 30 days
node
42
OpenAI (training)
1
Resources

No resource links recorded.

crystal-toolkit — pip install crystal-toolkit · libregistry