Skip to main content

Magnetic point group (MPG) tensor analysis toolkit

DOI readthedocs status

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

Installation

PythMPG is available through PyPI.

pip install pythmpg

To install from source in editable mode:

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

If you use the code in your paper, please cite us

@software{Urru_Python_Magnetic_Point_2026,
author = {Urru, Andrea and Birol, Turan and Cole, Trey and Vanderbilt, David},
doi = {10.5281/zenodo.18672613},
license = {GPL-3.0-or-later},
month = jun,
title = {{Python Magnetic Point Group (PythMPG)}},
url = {https://zenodo.org/records/18672613},
version = {1.0.0},
year = {2026}
}

Metadata

Release files for pythmpg 1.0.0

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

Source distribution (sdist)

Source distribution for pythmpg 1.0.0
File Size Uploaded
pythmpg-1.0.0.tar.gz 1.1 MB Details

Built distribution (wheel)

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

Total release size: 1.1 MB

Release files / pythmpg-1.0.0.tar.gz

Download URL pythmpg-1.0.0.tar.gz
Size 1.1 MB
Tags Source
SHA-256 checksum
How to use checksums
2ee58e432c7f2d24a5a703a113021712743879b76efa17061cda8acf26fba939
BLAKE2b-256 checksum
How to use checksums
6cb5f9a1085cd0456c4fdb90b0cf2132341fc4f66647fdfd008c928e65ab0260
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.13

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 Jun 24, 2026.

Transparency log

Release files / pythmpg-1.0.0-py3-none-any.whl

Download URL pythmpg-1.0.0-py3-none-any.whl
Size 36.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2cb568e4a5685040c805a94ab9e0b54d6368c44e9632025cb4e0b521c19122d8
BLAKE2b-256 checksum
How to use checksums
d79a1318d5ac938013b02b15e76ddfa5f3bbdbeb105a76d0349ee35172a244d6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.13

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 Jun 24, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files

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