matdomain-structure
Immutable, source-neutral values for one exact crystallographic structure occurrence. The package preserves the input cell and caller-provided site sequence, provides deterministic canonical bytes and digests, and exposes one explicit site-wrapping transformation.
Python 3.12 or newer is required. Install the published distribution with:
pip install matdomain-structure
From this workspace, install it directly with:
python -m pip install -e ./packages/matdomain-structure
from matdomain.structure import Lattice, Site, Species, StructureValue
structure = StructureValue(
lattice=Lattice(matrix=((3.0, 0.0, 0.0), (0.0, 3.0, 0.0), (0.0, 0.0, 3.0))),
periodic_axes=(True, True, True),
sites=(
Site(fractional_coordinates=(0.0, 0.0, 0.0), species=(Species(kind="element", symbol="Li", occupancy=1.0),)),
),
)
digest = structure.canonical_digest()
wrapped = structure.wrap_sites_to_unit_cell()
Lattice rows are measured in angstroms, and each periodic-axis flag applies to
the corresponding lattice row. Charge is measured in elementary-charge units
and is None when unknown. Fractional coordinates are retained exactly until
wrap_sites_to_unit_cell() is called; that operation wraps only periodic axes
and reports every site whose coordinate representative changed.
Each site has at least one non-vacancy component and occupancy totaling one
within an absolute tolerance of 1e-8. Partial occupancy uses one explicit
vacancy component. Site order remains input order; species within a site are
canonicalized by identity, including optional isotope mass number, oxidation
state, and spin. The versioned canonical bytes are the exact Python wire profile
returned by canonical_bytes() and contain no product provenance or scene data.
Spin is the optional idealized species value represented by pymatgen, not a
calculated site magnetic moment.
This distribution versions independently and uses tags of the form
matdomain-structure-vX.Y.Z. The workspace release workflow checks and
builds both distributions but publishes only the package named by the tag.
Metadata
Release files for matdomain-structure 0.1.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 | |
|---|---|---|---|---|
| matdomain_structure-0.1.0.tar.gz | 8.6 kB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| matdomain_structure-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 16.2 kB
Release files / matdomain_structure-0.1.0.tar.gz
| Download URL | matdomain_structure-0.1.0.tar.gz |
|---|---|
| Size | 8.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5b9ce8a339d23214ffc8921e700c5cd8a91a20c1e678a53a5257d55dc964bcd0
|
|
BLAKE2b-256 checksum How to use checksums |
3e1b4ea1b91b5390012aff0d48bdcf1ca3833ea1bea0873581f2880a924cbccd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Aug 31, 2026.
Transparency logRelease files / matdomain_structure-0.1.0-py3-none-any.whl
| Download URL | matdomain_structure-0.1.0-py3-none-any.whl |
|---|---|
| Size | 7.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7f01b0b079da44c6a25c66bceb105cd8b75670b36f13339626551ea14b5c41e7
|
|
BLAKE2b-256 checksum How to use checksums |
5adbd2829da7b6e144d38c1c8665e793ac23a790af20af508d1a9e2dd582bb30
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Aug 31, 2026.
Transparency logSecurity for matdomain-structure 0.1.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
All 2 files in this release have been uploaded with provenance metadata.
Attestation for matdomain_structure-0.1.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 Aug 31, 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.