CelleditPy — A Python Crystal Cell Editor
CelleditPy is a Python-based GUI application designed for crystallographers and computational chemists. It provides a visual, interactive environment to load molecular structures (from .mol or .cif files), define or adjust unit cell parameters, and reposition the molecule within the cell before saving the result as a .cif file.
This tool is built using PyQt6, PyVista, and ASE (Atomic Simulation Environment).
Features
- Load Structures: Load molecular structures from
.moland.ciffiles. - Save as CIF: Save the final structure, including the unit cell, in
.cifformat. - Interactive Cell Editing: Manually set or adjust unit cell parameters (
a,b,c,alpha,beta,gamma). - Auto-Fit Cell: Automatically calculate and apply the minimum cell dimensions (
a,b,c) required to contain the molecule, while preserving the current cell angles. - 3D Manipulation:
- Translation: Move the molecule along Cartesian (XYZ) axes or fractional cell (ABC) axes.
- Rotation: Rotate the molecule around Cartesian (XYZ) axes (centered on a selected atom) or cell (ABC) axes (centered on the axis itself).
- Molecule Fitting:
- Fit Molecule to Axis: Align the molecule to a specific cell axis (
a,b, orc) by defining the molecular direction using two or more atoms. - Fit in Cell (Auto-fit): Automatically detects atoms lying on a cell axis, fixes them, and rotates the rest of the molecule to best fit within the cell boundaries.
- Fit Molecule to Axis: Align the molecule to a specific cell axis (
- Coordinate Wrapping: Wrap atomic coordinates to fit all atoms inside the defined unit cell (0.0 to 1.0 fractional coordinates).
- Visualization:
- 3D visualization powered by PyVista.
- Toggle the display of atom indices.
- Reset the camera view.
Installation
Prerequisites:
- Python 3.8+
- The following libraries (and their dependencies) are required:
PyQt6pyvistapyvistaqtasenumpyscipy
These dependencies will be installed automatically when installing the package.
Install from Source:
Install the package using pip. This will also install all required dependencies and register the command-line entry point.
bash
pip install celleditpy
Usage
After installation, you can run the application by simply typing the following command in your terminal:
celleditpy
This will launch the main application window.
License
This project is licensed under the GNU General Public License v3.0 (GPL-v3) License. See the LICENSE file for details.
Author
- HiroYokoyama
Metadata
Release files for CelleditPy 0.5.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 |
|---|---|---|---|---|
| celleditpy-0.5.0.tar.gz | 44.3 kB | Without provenance | Details for celleditpy-0.5.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| celleditpy-0.5.0-py3-none-any.whl | Python 3 | none | any | Details for celleditpy-0.5.0-py3-none-any.whl |
Total release size: 89.5 kB
Release files / celleditpy-0.5.0.tar.gz
| Download URL | celleditpy-0.5.0.tar.gz |
|---|---|
| Size | 44.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2848e9be8e5db010c532bf6f277538bacfb76dd448a458328cfb3f212b0e7447
|
|
BLAKE2b-256 checksum How to use checksums |
6e9d3d0ee7065cba0030955d8a70da2cc76ae9f5decb13fda30552c5934c1b46
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.7
|
Release files / celleditpy-0.5.0-py3-none-any.whl
| Download URL | celleditpy-0.5.0-py3-none-any.whl |
|---|---|
| Size | 45.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e4e52874a9c64f72b48a3ef86a1969ff77d6c6086800bf5b039713a67ab6bef0
|
|
BLAKE2b-256 checksum How to use checksums |
df9ebf7c3216dde5860a7bd55a055e2ab7cbcf7cbb14fc5c761792a3d5215031
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.7
|
Security for CelleditPy 0.5.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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A 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.