Skip to main content

Magnetic point group (MPG) tensor analysis toolkit

DOI PyPI 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

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.

Metadata

Release files for pythmpg 1.1.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.1.0
File Size Uploaded Provenance Actions
pythmpg-1.1.0.tar.gz 1.1 MB With provenance Details for pythmpg-1.1.0.tar.gz

Built distribution (wheel)

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

Total release size: 1.2 MB

Release files / pythmpg-1.1.0.tar.gz

Download URL pythmpg-1.1.0.tar.gz
Size 1.1 MB
Tags Source
SHA-256 checksum
How to use checksums
5fdacc7434fa2cd00e03b4c7359f4c152a141c5a40907cfd289539e7bf8fdccf
BLAKE2b-256 checksum
How to use checksums
2427892ec1008c273ec494eaa7634752d5191cb260edca98b9d9ff70ee623678
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Oct 11, 2026.

Transparency log

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

Download URL pythmpg-1.1.0-py3-none-any.whl
Size 38.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
95dd33ac60223af6e3edfe7d2015d2b10375a93a7ab2fd0f408c529ea2fa27fc
BLAKE2b-256 checksum
How to use checksums
8bac4a89424b058a3a5f4808221416c06af4c3b982219e61909cd331fdb70112
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Oct 11, 2026.

Transparency log

Security for pythmpg 1.1.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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for pythmpg-1.1.0.tar.gz

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 Oct 11, 2026.

Transparency log

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.

Release history Release notifications | RSS feed

This release

1.1.0 This release

2 release files Full provenance

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