Skip to main content

symcrys for Python

Crystallographic symmetry calculations: the 32 crystal classes and the 122 magnetic point groups with their settings (ITC and Birss conventions), 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, 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, "parity": "polar", "intrinsic": "jk"}
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 seven 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.

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.8.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.8.0
File Size Uploaded Provenance Actions
symcrys-0.8.0.tar.gz 51.2 kB With provenance Details for symcrys-0.8.0.tar.gz

Built distribution (wheel)

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

Total release size: 104.8 kB

Release files / symcrys-0.8.0.tar.gz

Download URL symcrys-0.8.0.tar.gz
Size 51.2 kB
Tags Source
SHA-256 checksum
How to use checksums
edba9ffda8a3bf21b3bd37d729b9cbe5a26996c6a5f3012d7abf14697288fc12
BLAKE2b-256 checksum
How to use checksums
17ec720a35226a6858f3416065cdc97d818d28a81921e1fa66d0a9ad6b01ab82
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 21, 2026.

Transparency log

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

Download URL symcrys-0.8.0-py3-none-any.whl
Size 53.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ea8a51e30e27e462c4c0859ba3362fbaea87927e3e64e8c78bce046dc0d06f6a
BLAKE2b-256 checksum
How to use checksums
bc9833289652b8082d42afb4eda09428cdcc3d26060163a8a7e4fc8557646a37
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 21, 2026.

Transparency log

Security for symcrys 0.8.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.8.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 21, 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