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.15.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.15.0
File Size Uploaded Provenance Actions
symcrys-0.15.0.tar.gz 144.4 kB With provenance Details for symcrys-0.15.0.tar.gz

Built distribution (wheel)

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

Total release size: 292.2 kB

Release files / symcrys-0.15.0.tar.gz

Download URL symcrys-0.15.0.tar.gz
Size 144.4 kB
Tags Source
SHA-256 checksum
How to use checksums
9d295842fc2906f2b409213591b6ea34a6ffc7f2d78e105239967dca9eab2bd2
BLAKE2b-256 checksum
How to use checksums
48ba8fc310aa351bd42b463d13965e5c4277dc5d023f83bdadf7a8afe1c2ad02
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 27, 2026.

Transparency log

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

Download URL symcrys-0.15.0-py3-none-any.whl
Size 147.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
969de895877802dc7ade80a774adf027913985953014e544286a4f430ddcd262
BLAKE2b-256 checksum
How to use checksums
ead9d3c3c7320b0ead934f08a04411f5ab2dda0a28bdff054609045d0bbef798
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 27, 2026.

Transparency log

Security for symcrys 0.15.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.15.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 27, 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