Metadata-Version: 2.5
Name: pythmpg
Version: 1.1.0
Summary: Symmetry properties of the 122 magnetic point groups and counts of independent tensor components
Project-URL: Documentation, https://pythmpg.readthedocs.io/
Project-URL: Release notes, https://pythmpg.readthedocs.io/en/stable/release.html
Project-URL: Source, https://github.com/pythmpg/pythmpg
Project-URL: Issues, https://github.com/pythmpg/pythmpg/issues
Author-email: Andrea Urru <au168@physics.rutgers.edu>, Turan Birol <tbirol@umn.edu>, Trey Cole <bc889@physics.rutgers.edu>, David Vanderbilt <dhv@physics.rutgers.edu>
License-Expression: GPL-3.0-or-later
License-File: LICENSE
Requires-Python: >=3.12
Requires-Dist: numpy>=2.0
Provides-Extra: docs
Requires-Dist: furo; extra == 'docs'
Requires-Dist: myst-parser; extra == 'docs'
Requires-Dist: sphinx; extra == 'docs'
Requires-Dist: sphinx-autobuild; extra == 'docs'
Provides-Extra: tests
Requires-Dist: pytest; extra == 'tests'
Description-Content-Type: text/markdown

# Magnetic point group (MPG) tensor analysis toolkit

[![DOI](https://img.shields.io/badge/DOI-10.5281%2Fzenodo.18672613-blue.svg)](https://doi.org/10.5281/zenodo.18672613)
[![PyPI](https://img.shields.io/pypi/v/pythmpg.svg)](https://pypi.org/project/pythmpg/)
[![readthedocs status](https://app.readthedocs.org/projects/pythmpg/badge)](https://pythmpg.readthedocs.io) 


The ``pythmpg`` package provides tools for enumerating symmetry
properties of all 122 magnetic point groups (MPGs), and for counting
the number of independent components of arbitrary-rank tensors
under those symmetries as classified by their Jahn symbol.

A major feature of the package is its ability to export data in the
form of a ``.csv`` file that can be used to build a spreadsheet
capable of screening for MPGs based on whether they have
certain symmetries or support specified tensor properties. A broader
community of users can then use standard spreadsheet tools, such
as sorting on columns and hiding columns and rows, to achieve similar ends,
without the need to access the Python codes themselves.

## Resources
- **Source**: https://github.com/pythmpg/pythmpg
- **Documentation**: https://pythmpg.readthedocs.io
- **Zenodo Repository**: https://zenodo.org/records/18672613

## Installation

PythMPG is available through PyPI.

```bash
pip install pythmpg
```
To install from source in editable mode:

```bash
git clone https://github.com/pythmpg/pythmpg.git
cd pythmpg
pip install -e .
```

PythMPG ≥ 1.0.0 requires Python ≥ 3.12 and the core dependency:
- numpy ≥ 2.0

## Citation

The principal reference describing the code is
Andrea Urru, Turan Birol, Trey Cole, and David Vanderbilt,
_Screening of tensor properties by magnetic point group symmetries:
The pythmpg code package_, 2026, <https://arxiv.org/abs/2610.10024>.

The spreadsheets and code are also available at
<https://zenodo.org/records/18672613>. 
This repository can be cited in Bibtex and other formats using
the _Export_ tab on that page.
