spacetime-sym
Spatial and dichromatic point groups, Curie limiting groups, and invariance of physical quantities in Python.
spacetime-sym is a scientific Python library for constructing spatial and dichromatic point groups and testing the invariance of physical quantities under their operations. It combines rotations and reflections in O(3) (including proper rotations in SO(3)) with discrete reversal operations such as time reversal (T), and supports continuous axial and isotropic Curie limiting groups. Physical quantities carry explicit transformation characters, including the spatial P convention and a charge-reversal C label. The supported representations include scalars, pseudoscalars, polar and axial vectors, and second-rank tensors, with configurable dichromatic properties and optional bidirector equivalence. The emphasis is on symmetry constraints beyond periodic crystal structures.
Highlights
- Spatial and dichromatic point groups: construct groups from rotations and reflections combined with time reversal and other independently configurable binary reversal labels (a form of multiple antisymmetry).
- Generator-based group closure: compose generators and inverses into a finite group, distinguishing independent reversal-label combinations; limiting groups additionally enforce compatible axial or isotropic symmetry constraints.
- Physical-quantity invariance: test scalars, pseudoscalars, polar and axial vectors, and second-rank tensors with their specified (configurable) spatial and dichromatic transformation characters.
- Continuous Curie limiting groups: check invariants under axial and isotropic limiting symmetries, including multiple binary reversals, without sampling every rotation angle. Use the limiting-group classes with compatible finite operations; the limiting-operation classes can be used separately. Automatic Hermann–Mauguin-style labels are available for supported isotropic groups.
- Reproducible examples: finite and limiting-group cases, including tensor invariance, in the documentation and unit tests.
Installation
Python 3.12+ is required.
git clone https://github.com/bogdan-tanygin/spacetime-sym.git
cd spacetime-sym
python -m pip install -e .
Tests
python -m pip install -e ".[dev]"
python -m pytest tests/unit_tests
Documentation and research
- Scientific overview and API documentation
- Executable examples in the test suite
- Research background: Tanygin's thesis and Hlinka's vectorlike-quantity classification
License, attribution, and contributions
spacetime-sym is available under GPL-3.0-only or a separate written commercial license. For commercial use or research partnerships, contact info@deeptech.business.
The project builds on bsym by Benjamin J. Morgan (JOSS, 2017); retained upstream code is covered by the original MIT notices.
Issues, tests, documentation improvements, and pull requests are welcome. Please coordinate licensing of substantial code contributions in advance. See Issues and Pull requests.
Metadata
Release files for spacetime-sym 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| spacetime_sym-1.0.0.tar.gz | 35.9 kB | With provenance | Details for spacetime_sym-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| spacetime_sym-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for spacetime_sym-1.0.0-py3-none-any.whl |
Total release size: 72.3 kB
Release files / spacetime_sym-1.0.0.tar.gz
| Download URL | spacetime_sym-1.0.0.tar.gz |
|---|---|
| Size | 35.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ac1c93c31b23003a531094dcaad7639f719467aec1dfc7495764bccc008b6b88
|
|
BLAKE2b-256 checksum How to use checksums |
aa6478f4e0d611eb0b978dd58ebec005e52357cba80762f23cf14862eff1e563
|
| 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 16, 2026.
Transparency logRelease files / spacetime_sym-1.0.0-py3-none-any.whl
| Download URL | spacetime_sym-1.0.0-py3-none-any.whl |
|---|---|
| Size | 36.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2101066ac93d4c98d72ad11f53505ab0b6371c93215567ac7752643ef06bd781
|
|
BLAKE2b-256 checksum How to use checksums |
5e6967d5bd2443c0a624b063fca1826719b239d48ff40b59d4376cb927c73d21
|
| 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 16, 2026.
Transparency logSecurity for spacetime-sym 1.0.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.
Attestation for spacetime_sym-1.0.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 16, 2026.
Transparency logA 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.