Skip to main content

This is the spglib module.

Project description

Python bindings for C library for finding and handling crystal symmetries

Installation

The package is developed on GitHub. You can get the source for the released versions from the repository.

Note that the Python bindings will link to the system/environment installed Spglib (loaded from LD_LIBRARY_PATH or DYLD_LIBRARY_PATH), and it will default to a bundled version otherwise. To always use the system version of Spglib (e.g. in a lua-module environment) delete the bundled libraries libsymspg.so* in the python Spglib installation directory.

Using package distribution service

The easiest way to install python-spglib is to use the pypi package, for which numpy is required to be installed before the installation. A command to install spglib is:

$ pip install spglib

Conda is another choice:

$ conda install -c conda-forge spglib

These packages are made by Pawel T. Jochym.

Building from source

To build from source, make sure you have installed the build requirements in pyproject.toml. Then simply run the following in the root directory.

$ python -m build
$ pip install .

To include testing or documentation environments, simply include the relevant extras

$ pip install .[test]

Running tests

After installing the project with appropriate extras (testing), either from package manager or from source, simply run pytest in the current directory to test the python bindings

$ pytest

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

spglib-2.5.0.tar.gz (2.8 MB view details)

Uploaded Source

Built Distributions

spglib-2.5.0-cp312-cp312-win_amd64.whl (300.7 kB view details)

Uploaded CPython 3.12 Windows x86-64

spglib-2.5.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.1 MB view details)

Uploaded CPython 3.12 manylinux: glibc 2.17+ x86-64

spglib-2.5.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (1.1 MB view details)

Uploaded CPython 3.12 manylinux: glibc 2.17+ ARM64

spglib-2.5.0-cp312-cp312-macosx_11_0_arm64.whl (1.1 MB view details)

Uploaded CPython 3.12 macOS 11.0+ ARM64

spglib-2.5.0-cp312-cp312-macosx_10_9_x86_64.whl (1.1 MB view details)

Uploaded CPython 3.12 macOS 10.9+ x86-64

spglib-2.5.0-cp311-cp311-win_amd64.whl (300.7 kB view details)

Uploaded CPython 3.11 Windows x86-64

spglib-2.5.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.1 MB view details)

Uploaded CPython 3.11 manylinux: glibc 2.17+ x86-64

spglib-2.5.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (1.1 MB view details)

Uploaded CPython 3.11 manylinux: glibc 2.17+ ARM64

spglib-2.5.0-cp311-cp311-macosx_11_0_arm64.whl (1.1 MB view details)

Uploaded CPython 3.11 macOS 11.0+ ARM64

spglib-2.5.0-cp311-cp311-macosx_10_9_x86_64.whl (1.1 MB view details)

Uploaded CPython 3.11 macOS 10.9+ x86-64

spglib-2.5.0-cp310-cp310-win_amd64.whl (300.7 kB view details)

Uploaded CPython 3.10 Windows x86-64

spglib-2.5.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.1 MB view details)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

spglib-2.5.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (1.1 MB view details)

Uploaded CPython 3.10 manylinux: glibc 2.17+ ARM64

spglib-2.5.0-cp310-cp310-macosx_11_0_arm64.whl (1.1 MB view details)

Uploaded CPython 3.10 macOS 11.0+ ARM64

spglib-2.5.0-cp310-cp310-macosx_10_9_x86_64.whl (1.1 MB view details)

Uploaded CPython 3.10 macOS 10.9+ x86-64

spglib-2.5.0-cp39-cp39-win_amd64.whl (300.8 kB view details)

Uploaded CPython 3.9 Windows x86-64

spglib-2.5.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.1 MB view details)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

spglib-2.5.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (1.1 MB view details)

Uploaded CPython 3.9 manylinux: glibc 2.17+ ARM64

spglib-2.5.0-cp39-cp39-macosx_11_0_arm64.whl (1.1 MB view details)

Uploaded CPython 3.9 macOS 11.0+ ARM64

spglib-2.5.0-cp39-cp39-macosx_10_9_x86_64.whl (1.1 MB view details)

Uploaded CPython 3.9 macOS 10.9+ x86-64

File details

Details for the file spglib-2.5.0.tar.gz.

File metadata

  • Download URL: spglib-2.5.0.tar.gz
  • Upload date:
  • Size: 2.8 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.0 CPython/3.12.4

File hashes

Hashes for spglib-2.5.0.tar.gz
Algorithm Hash digest
SHA256 f8bb638897be91b9dbd4c085d9fde1f69048f5949e20f3832cb9438e57418d4b
MD5 f5aebe15d0fdb0a28431d0da9a66065f
BLAKE2b-256 108e2c53fa9027543c3624cdd8b7ac9f6d611464dfc86eb786465e422a8c024c

See more details on using hashes here.

File details

Details for the file spglib-2.5.0-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: spglib-2.5.0-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 300.7 kB
  • Tags: CPython 3.12, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.0 CPython/3.12.4

File hashes

Hashes for spglib-2.5.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 2f3bd027c40b74cc5297de3898d4badee32f8e90d24ac0449cd4266ee5111ba3
MD5 c4b96c2894b41d86e26a749200ad387b
BLAKE2b-256 955aa4854a97c7e5e693bd6fd31212a5b3e66386847c89f984947f2113253fd3

See more details on using hashes here.

File details

Details for the file spglib-2.5.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for spglib-2.5.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 b7b0b73ad5a352cd1e0544631b3ab98980a366e2b1bd7c804ab8c3f6ea45a6d8
MD5 8f04fe89510fe24bec1c5250c392a8da
BLAKE2b-256 14c3e90b94178e01e3af7b54c245216bcc3910f01dc2ec5ca7579c43ad3acdf9

See more details on using hashes here.

File details

Details for the file spglib-2.5.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for spglib-2.5.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 4cb174c6e0d3e2f824a5b4c0f46c2460ce9052c5ef88909058fe982885e47939
MD5 bf466c24a3d6ea5746ed647e9c22dd82
BLAKE2b-256 63d4411dc94bba3e1ccff68c23b3a6b858aa75991f4d8af4e9a81fa6fe2719b8

See more details on using hashes here.

File details

Details for the file spglib-2.5.0-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for spglib-2.5.0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 80fc33a21df2097d5f2182550719f761b3c3230e60bfa5f91dcf5683dc44d6b0
MD5 a2cec0eb4d2747fb1422a2180bd214dd
BLAKE2b-256 a6f66eb33d67df543eca3038adb26f59b6309ee42b1cbf9365acc1b5ca587fad

See more details on using hashes here.

File details

Details for the file spglib-2.5.0-cp312-cp312-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for spglib-2.5.0-cp312-cp312-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 2fe0014743694bed8fad0c21df0083086dc8aa9a6f61106fc1831edb9e67d260
MD5 032ac172adaad272e443261dfa8606e2
BLAKE2b-256 cd62b0147f156841fc361657393b644c096e4daa4ecd92b0c28d7026e102e977

See more details on using hashes here.

File details

Details for the file spglib-2.5.0-cp311-cp311-win_amd64.whl.

File metadata

  • Download URL: spglib-2.5.0-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 300.7 kB
  • Tags: CPython 3.11, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.0 CPython/3.12.4

File hashes

Hashes for spglib-2.5.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 d5bc51265dc3a4ca77026f668a1884427d1c7f5f32669948336105a71bde745b
MD5 966e06637e38307715ae5b78985c9e7a
BLAKE2b-256 b6274412242308119edef9f525afdc17af91560e64945af299676538576b4848

See more details on using hashes here.

File details

Details for the file spglib-2.5.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for spglib-2.5.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 6b2f6085d5f7d8fff63055fdea2955e9667f07934263f23f8db12d667228c2a2
MD5 7faf8fd6f6fb145f79365ef0694d0c14
BLAKE2b-256 b661f301b774e5cdbc9b618d9946eaa269d8e563ccad06a34c0bd33f276be8db

See more details on using hashes here.

File details

Details for the file spglib-2.5.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for spglib-2.5.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 67c67a3457dcafd8c533b2c3bebd2f25dcdbef3d7b6ec122f1e983218e0cdeee
MD5 f8eacac890d0b64bb1fca0bf4a5f561a
BLAKE2b-256 229b66891820345f06de8bd0723f9ea075ed62be40eda8d7a0a56b93d9dbf978

See more details on using hashes here.

File details

Details for the file spglib-2.5.0-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for spglib-2.5.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c36c549442d6e422c932f528dff13af5eb766a5d1985d1d14d65777b1d69f136
MD5 ec3b93ae3630167b763c73cfd0ad7b5b
BLAKE2b-256 ca410ea6f102558c70e8d86a7127a8cc6b1a5cd765931b2baba8b82d66a4df93

See more details on using hashes here.

File details

Details for the file spglib-2.5.0-cp311-cp311-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for spglib-2.5.0-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 6d9d812eea06e09a1f725755f21efa7451c48636cd24abb64ffa2cd82b8003dd
MD5 c9b789a09b4025b88458fea63d363287
BLAKE2b-256 c906c52cc06a44b265d49bf8e006c45de82de1aa6fbad113e9b84bb6e7f4e8b6

See more details on using hashes here.

File details

Details for the file spglib-2.5.0-cp310-cp310-win_amd64.whl.

File metadata

  • Download URL: spglib-2.5.0-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 300.7 kB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.0 CPython/3.12.4

File hashes

Hashes for spglib-2.5.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 b16ffc3497736263a53b629768ec8aae707d595bbd702deac3a6dd39e045537b
MD5 61ab986ddf481aca36a1b34097c382b9
BLAKE2b-256 d643941c82f6d0665cd6f2af29a4547b24e5e06367bec2e2b73ab903c62674b7

See more details on using hashes here.

File details

Details for the file spglib-2.5.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for spglib-2.5.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 a8cf1f4082d8685686d7b3cf8d6ade4182ba09f13cc49eb2481201c0aa4579c9
MD5 69bbd3f8cb1d6a5e201faf3603168224
BLAKE2b-256 c77068c4d51809a558784b822d7d6e2469696d3efd6039f76e6a7b1b4f7a3422

See more details on using hashes here.

File details

Details for the file spglib-2.5.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for spglib-2.5.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 12c3eb5d302dd74d07d35ad53180f7f91c69b58473e48b510aae90567f2bb90f
MD5 a67370495b5dd6a04521d156825849a4
BLAKE2b-256 672f330e67f98932ac1433472ba224e5f5319efdacf3fde149f09ccae4ee82f8

See more details on using hashes here.

File details

Details for the file spglib-2.5.0-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for spglib-2.5.0-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b0b070ddbaad0e97ec18efef602af57caf0045c7187180b1eaea843cb5877c8b
MD5 cd4c001c2e7366c5dc946618165cec40
BLAKE2b-256 999fe6465a4e0856e35576d0cef7e44e10bdf8aa010dea0969c1ad3c50112c7c

See more details on using hashes here.

File details

Details for the file spglib-2.5.0-cp310-cp310-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for spglib-2.5.0-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 993f4b2d2f0a133d22fcf2d6f3fad9beeee3527c5453d5619e6518d7af253c85
MD5 7ec0016acd99ff03cf8e0433f5b2ba5b
BLAKE2b-256 32abf9436120f1282b5bc6af7d63c5b1c3296f86acdc09927069631b092c051b

See more details on using hashes here.

File details

Details for the file spglib-2.5.0-cp39-cp39-win_amd64.whl.

File metadata

  • Download URL: spglib-2.5.0-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 300.8 kB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.0 CPython/3.12.4

File hashes

Hashes for spglib-2.5.0-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 af3e2f58a1b16cba25838e844829e3f94a7ddff8297690837c9b875f50458690
MD5 435715f5a8524735bc0d82d8e6ea952a
BLAKE2b-256 63ae6f1301b566d3b04b379434c5c00397ef86be362c1bcd5b96267e88178a29

See more details on using hashes here.

File details

Details for the file spglib-2.5.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for spglib-2.5.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 1b1482f6bc4cc73bff84d1a7eb7a7823b2c4d7b0245f8c694efa88bd3f6bddd5
MD5 1e14661824ae1b9571d8256c61bd1227
BLAKE2b-256 54d06e1d4bf22ac47a8d780f60bb8c7b59861df9ae7cec7dd539ec8e68c23b9d

See more details on using hashes here.

File details

Details for the file spglib-2.5.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for spglib-2.5.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 2bde949ed51f975dcc78b00ace7bcb693b9f1fa8ae66f2e2d7ed344d6929eaaf
MD5 b8db2229c53f53833bf328c42a4fb95d
BLAKE2b-256 455e7bc170c3786d89623aa10e3128bd5eab831f48b7681424c62dab068acc62

See more details on using hashes here.

File details

Details for the file spglib-2.5.0-cp39-cp39-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for spglib-2.5.0-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1ebedc8fb06d1cc43f2c2a267a728116736b701c3458e3b8d87fec9b9d884d49
MD5 7560d66ec904a240168a6a6f6fb84b42
BLAKE2b-256 1db189a98bbec3afab600c3533630587306cee9decbe754ea8a9844ada93633f

See more details on using hashes here.

File details

Details for the file spglib-2.5.0-cp39-cp39-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for spglib-2.5.0-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 d419819ee66e1359fac9fd661de9a416842c764ceb4d0ab851c7307cc46ebabe
MD5 c58d367b488806645ab0aac85f5f68dd
BLAKE2b-256 4c407f9e92e08835a9e3fd61ab8b0fb46a86725bf57064516d9e8ca82e208322

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page