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; 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, "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; 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.9.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.9.0
File Size Uploaded Provenance Actions
symcrys-0.9.0.tar.gz 64.8 kB With provenance Details for symcrys-0.9.0.tar.gz

Built distribution (wheel)

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

Total release size: 132.6 kB

Release files / symcrys-0.9.0.tar.gz

Download URL symcrys-0.9.0.tar.gz
Size 64.8 kB
Tags Source
SHA-256 checksum
How to use checksums
1eaa5c6035fe4d02a2485fae3c3f4fbddf5718a54d34d888244f1ae17adf00a9
BLAKE2b-256 checksum
How to use checksums
85d1c2cbf0269c6ae6d659c8de14f573b1f9d1f853992a21610fcfce72deeb11
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 22, 2026.

Transparency log

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

Download URL symcrys-0.9.0-py3-none-any.whl
Size 67.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
484736eaec99a7814090168b375335788a3e48016822408f8f2ce3f65701cfc3
BLAKE2b-256 checksum
How to use checksums
a56ff7b16337dd74484434e8f4aa5ebd3c43479bfd213cb6edce1aa3b2646560
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 22, 2026.

Transparency log

Security for symcrys 0.9.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.9.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 22, 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