Spgrep
spgrep is a Python package for calculating irreducible representations of space groups and crystallographic point groups from crystal structures or symmetry operations.
Who this is for: Researchers who use crystal symmetry and Python arrays. Start with the quickstart if you are new to representation calculations. The theory pages explain the mathematics separately.
Start a calculation
Install the package with Python 3.11 or later:
python -m pip install spgrep
Follow the quickstart to calculate the irreducible representations of rutile at the X point and associate each matrix with a symmetry operation. Then read how spgrep represents symmetry before using your own data. For a source checkout and contributor tools, see development.
Find the guide for your task
- To calculate irreps from operations you already have, use Calculate irreps from primitive symmetry.
- To construct tensor bases, analyze lattice vibrations, or work with spinors, choose a worked tutorial. You can skip the derivations to run these examples.
- To understand little groups, real representations, or spinor factor systems, read the theory guide. Start with space-group irreps, then choose the extension your calculation needs.
- To look up arguments, return arrays, or numerical options, use the API reference. Experienced users can start there.
Supported calculations
spgrep enumerates complex irreducible representations, physically irreducible representations over real vector spaces, spinor representations, and spinor co-representations for magnetic symmetry. It also constructs symmetry-adapted bases. See core functions for the supported combinations of input and representation type.
The source repository, documentation site, and PyPI package provide the code, guides, and releases.
Change log
See the change log for recent changes.
How to cite spgrep
If you use spgrep in your research, please consider citing the following work:
@article{spgrep,
doi = {10.21105/joss.05269},
url = {https://doi.org/10.21105/joss.05269},
year = {2023},
publisher = {The Open Journal},
volume = {8},
number = {85},
pages = {5269},
author = {Shinohara, Kohei and Togo, Atsushi and Tanaka, Isao},
title = {spgrep: On-the-fly generator of space-group irreducible representations},
journal = {J. Open Source Softw.}
}
How to contribute
We welcome any contributions to improve functionalities. Please open issues or create pull requests. See the development page for preparing an environment.
License
Spgrep is released under a BSD 3-clause license.
Metadata
Release files for spgrep 0.9.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| spgrep-0.9.0-py3-none-any.whl | Python 3 | none | any | Details for spgrep-0.9.0-py3-none-any.whl |
Release files / spgrep-0.9.0-py3-none-any.whl
| Download URL | spgrep-0.9.0-py3-none-any.whl |
|---|---|
| Size | 51.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5e46872159c10ceb3a411b7b2472917630a168c4adb393ebc8e1c37732fdb91c
|
|
BLAKE2b-256 checksum How to use checksums |
c967eec632970ae1ed7b3eca973a631bed47fe48ef41a87e7d3aae25acbc052c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Security for spgrep 0.9.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.