A Python framework for the CRYSTAL quantum-chemistry code: it reads what a calculation writes and plots the properties it returns.
Installation
Public releases are distributed through PyPI. In an environment of its own:
conda create --name crystalclear python=3.12 && conda activate crystalclear
pip install CRYSTALClear
pymatgen, numpy, mendeleev and ase are installed with it if not already present.
What it does
- Band structures and densities of states
- Elastic properties: Young and shear moduli, linear compressibility, Poisson ratio
- Harmonic and anharmonic IR and Raman spectra
- Electron densities and topological analysis of their Laplacian
- Transport properties
- Extraction of information from CRYSTAL
.outfiles
The documentation describes each of these in turn.
Usage
To use any of the features of the package, first build a CRYSTAL object through
the crystal_io module. Three classes are available, for different uses:
- Crystal_output: extracts information, and builds the objects to plot,
from any
.outfile of the CRYSTAL package. - Properties_output: builds the objects to plot any of the quantities
stored in the
.DATand.f25files written by the PROPERTIES module. - External_unit: builds the objects to plot any of the quantities stored
in the
.DATand.f25files written by CRYSTAL.
from CRYSTALClear.crystal_io import class
# Crystal_output
data = class(file).function(*args, **kwargs)
# Properties_output and External_unit
data = class().function(file)
Once the object is built, the desired plot is drawn with the functions of the
plot module:
import CRYSTALClear.plot as CCplt
CCplt.function(data, *args, **kwargs)
Each function returns one (or a list of) matplotlib objects, which can be modified as any other plot made with the library.
Contributing
Contributions are what make the open source community such an amazing place to be, learn, inspire, and create. Any contributions you make are greatly appreciated.
- Fork the project
- Create your feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a pull request
License
Distributed under the MIT License. See LICENSE.txt.
Acknowledgements
Forked from CRYSTALpytools. CRYSTALLine, the desktop program for CRYSTAL structures, is built on it.
Contact
- Website: https://www.crystal.unito.it
- Email: crystalunito@gmail.com
- Instagram: @crystaldevs
Metadata
Release files for CRYSTALClear 0.2.18
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 |
|---|---|---|---|---|
| crystalclear-0.2.18.tar.gz | 136.2 kB | With provenance | Details for crystalclear-0.2.18.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| crystalclear-0.2.18-py3-none-any.whl | Python 3 | none | any | Details for crystalclear-0.2.18-py3-none-any.whl |
Total release size: 278.7 kB
Release files / crystalclear-0.2.18.tar.gz
| Download URL | crystalclear-0.2.18.tar.gz |
|---|---|
| Size | 136.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9b83cfe7b7b11fc9e4e516cfdee83e8f366ed9c29f6c0cca552184ea92040705
|
|
BLAKE2b-256 checksum How to use checksums |
25144c9d7463e63f4b94b4a2c15ed0246fba83a85fcfab597eef2a9b2ad195d1
|
| 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 Oct 21, 2026.
Transparency logRelease files / crystalclear-0.2.18-py3-none-any.whl
| Download URL | crystalclear-0.2.18-py3-none-any.whl |
|---|---|
| Size | 142.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b1a12dbd093d4858ffd33239976adb63a1c6ee3b09b311ac15b0afd359e24b56
|
|
BLAKE2b-256 checksum How to use checksums |
3fd87f38a16b1d831226c5549b531802c20e0a82f8675ef6a27ae534ed61cffd
|
| 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 Oct 21, 2026.
Transparency logSecurity for CRYSTALClear 0.2.18
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 crystalclear-0.2.18.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 Oct 21, 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.