Skip to main content

symcrys for Python

Crystallographic symmetry calculations: the 32 crystal classes and the 122 magnetic point groups with their settings as ITC gives them, symbols, symmetry elements, site symmetry and the forms of property tensors of rank 0 to 4 they allow, and for the crystal classes Wyckoff positions and crystal forms; the 17 plane groups with their operations, Wyckoff positions, asymmetric unit and symmetry elements; checked against print (ITC, Birss, Yariv).

This package is the TypeScript library symcrys of the same version, run in an embedded JavaScript engine (quickjs-ng). The results are those of the TypeScript library (up to rounding in the last bit of a float); the names follow a fixed rule (tensorForm → tensor_form), and matrices and vectors are NumPy arrays.

pip install symcrys
import symcrys
from symcrys import magnetic

SHG = {"rank": 3, "kind": "polar", "intrinsic": "symmetric-last-pair"}
symcrys.tensor_form("mm2", SHG)["parameters"]   # the free components: xxz, yyz, zxx, zyy, zzz
symcrys.allowed_properties("32")               # ['piezoelectric', 'gyrotropic']: quartz
magnetic.allowed_properties("321'")            # the same: quartz is the grey group in the magnetic API
magnetic.allowed_properties("m'm'2")           # six of the eight names, 'ferromagnetic' among them

symcrys is the crystallographic API (the 32 crystal classes, without time reversal), symcrys.magnetic the magnetic API (the 122 magnetic point groups), under the same function names; symcrys.plane the plane groups and plane point groups, in the lattice basis.

Documentation: manganite.github.io/symcrys: getting started, the two readings of a key, the conventions and their print sources, tensors and named properties, the example notebook on second-harmonic generation at surfaces, and the reference.

Python 3.10 or later. quickjs-ng has no wheel for macOS on Intel; pip builds it from source there (a C compiler is needed). Licence: MIT.

Metadata

Release files for symcrys 0.12.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 symcrys 0.12.0
File Size Uploaded Provenance Actions
symcrys-0.12.0.tar.gz 116.7 kB With provenance Details for symcrys-0.12.0.tar.gz

Built distribution (wheel)

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

Total release size: 236.8 kB

Release files / symcrys-0.12.0.tar.gz

Download URL symcrys-0.12.0.tar.gz
Size 116.7 kB
Tags Source
SHA-256 checksum
How to use checksums
6ba0e9b42727d6a1713cbf17c77b2cd567e2328e36c539722cee830e80c8880e
BLAKE2b-256 checksum
How to use checksums
d0b732453d4f4e79af1ab950f05c4bb3a5499a0914e6098c267edfc59d131b3f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 25, 2026.

Transparency log

Release files / symcrys-0.12.0-py3-none-any.whl

Download URL symcrys-0.12.0-py3-none-any.whl
Size 120.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
eff5f9279b9b6b84ec1a4054a176280ed88bc66a248c5c60d3e02bf2d3cbfb56
BLAKE2b-256 checksum
How to use checksums
280d2b8402d8d82ca2c75fa82ad5fd8c491b920598cc0c3f8955ee3ad75134ce
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 25, 2026.

Transparency log

Security for symcrys 0.12.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 symcrys-0.12.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 Nov 25, 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.

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