Skip to main content

Spgrep

spgrep

testing codecov License PyPI - Python Version PyPI version PyPI Downloads DOI

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.10 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.8.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for spgrep 0.8.2
File Interpreter ABI Platform Actions
spgrep-0.8.2-py3-none-any.whl Python 3 none any Details for spgrep-0.8.2-py3-none-any.whl

Release files / spgrep-0.8.2-py3-none-any.whl

Download URL spgrep-0.8.2-py3-none-any.whl
Size 49.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0f366ae3ba6eb3e131733d532fbcab627c451982b80b383ff2dd980dfc93611a
BLAKE2b-256 checksum
How to use checksums
4594b03de36a3e4b0ce62582e75f8834dfd8d91947e973881f7e154b4e44331f
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.8.2

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page