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.14.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.14.0
File Size Uploaded Provenance Actions
symcrys-0.14.0.tar.gz 124.7 kB With provenance Details for symcrys-0.14.0.tar.gz

Built distribution (wheel)

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

Total release size: 252.7 kB

Release files / symcrys-0.14.0.tar.gz

Download URL symcrys-0.14.0.tar.gz
Size 124.7 kB
Tags Source
SHA-256 checksum
How to use checksums
9545e9a8eec0add93c5a5db8c567209c58ab07ee94c21e6dc5a9439bc5ed421c
BLAKE2b-256 checksum
How to use checksums
ff9628ef4c07bba557ef8c6c2e39d05d58f8de61637870af6f2215e2b405db84
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 26, 2026.

Transparency log

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

Download URL symcrys-0.14.0-py3-none-any.whl
Size 128.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4711958e398853dae0cce3df98dd9f8811571963b4349c9a3d0f0e892326af04
BLAKE2b-256 checksum
How to use checksums
3fce3c8562b69b87f09f02a403a357782a6bffb0e3de740fde0fc73fe64b47a1
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 26, 2026.

Transparency log

Security for symcrys 0.14.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.14.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 26, 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