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

This version

2.2.0

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.2.0.tar.gz (2.8 MB view details)

Uploaded Source

Built Distributions

spglib-2.2.0-cp311-cp311-win_amd64.whl (292.2 kB view details)

Uploaded CPython 3.11 Windows x86-64

spglib-2.2.0-cp311-cp311-manylinux_2_17_x86_64.whl (803.2 kB view details)

Uploaded CPython 3.11 manylinux: glibc 2.17+ x86-64

spglib-2.2.0-cp311-cp311-manylinux_2_17_aarch64.whl (794.5 kB view details)

Uploaded CPython 3.11 manylinux: glibc 2.17+ ARM64

spglib-2.2.0-cp311-cp311-macosx_10_9_x86_64.whl (789.9 kB view details)

Uploaded CPython 3.11 macOS 10.9+ x86-64

spglib-2.2.0-cp310-cp310-win_amd64.whl (292.2 kB view details)

Uploaded CPython 3.10 Windows x86-64

spglib-2.2.0-cp310-cp310-manylinux_2_17_x86_64.whl (803.2 kB view details)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

spglib-2.2.0-cp310-cp310-manylinux_2_17_aarch64.whl (794.5 kB view details)

Uploaded CPython 3.10 manylinux: glibc 2.17+ ARM64

spglib-2.2.0-cp310-cp310-macosx_10_9_x86_64.whl (789.9 kB view details)

Uploaded CPython 3.10 macOS 10.9+ x86-64

spglib-2.2.0-cp39-cp39-win_amd64.whl (292.2 kB view details)

Uploaded CPython 3.9 Windows x86-64

spglib-2.2.0-cp39-cp39-manylinux_2_17_x86_64.whl (803.2 kB view details)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

spglib-2.2.0-cp39-cp39-manylinux_2_17_aarch64.whl (794.5 kB view details)

Uploaded CPython 3.9 manylinux: glibc 2.17+ ARM64

spglib-2.2.0-cp39-cp39-macosx_10_9_x86_64.whl (789.9 kB view details)

Uploaded CPython 3.9 macOS 10.9+ x86-64

spglib-2.2.0-cp38-cp38-win_amd64.whl (292.2 kB view details)

Uploaded CPython 3.8 Windows x86-64

spglib-2.2.0-cp38-cp38-manylinux_2_17_x86_64.whl (803.2 kB view details)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64

spglib-2.2.0-cp38-cp38-manylinux_2_17_aarch64.whl (794.5 kB view details)

Uploaded CPython 3.8 manylinux: glibc 2.17+ ARM64

spglib-2.2.0-cp38-cp38-macosx_10_9_x86_64.whl (789.9 kB view details)

Uploaded CPython 3.8 macOS 10.9+ x86-64

spglib-2.2.0-cp37-cp37m-win_amd64.whl (292.2 kB view details)

Uploaded CPython 3.7m Windows x86-64

spglib-2.2.0-cp37-cp37m-manylinux_2_17_x86_64.whl (803.2 kB view details)

Uploaded CPython 3.7m manylinux: glibc 2.17+ x86-64

spglib-2.2.0-cp37-cp37m-manylinux_2_17_aarch64.whl (794.4 kB view details)

Uploaded CPython 3.7m manylinux: glibc 2.17+ ARM64

spglib-2.2.0-cp37-cp37m-macosx_10_9_x86_64.whl (789.9 kB view details)

Uploaded CPython 3.7m macOS 10.9+ x86-64

File details

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

File metadata

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

File hashes

Hashes for spglib-2.2.0.tar.gz
Algorithm Hash digest
SHA256 4a7c71f6adb860cbe14acdfd6ca43dcd29ecd9aed3f38c02cd76da80ffa5d01c
MD5 63a47861a5d6e091c4e4cc29857a7dee
BLAKE2b-256 541304a95b4550bb698a4df25852b3a0b52379af2da23ec86c8c5079e843db20

See more details on using hashes here.

File details

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

File metadata

  • Download URL: spglib-2.2.0-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 292.2 kB
  • Tags: CPython 3.11, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.7

File hashes

Hashes for spglib-2.2.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 4d5067b266d8135caf2f8fecf75e4383c9c64725438fc28d415c346b64b23643
MD5 6535f29f683dd643cfe8a0e433f621c1
BLAKE2b-256 f89e17a8c9d0d82e88f893fe2994e22d30386b617c8560023c3662945e614f15

See more details on using hashes here.

File details

Details for the file spglib-2.2.0-cp311-cp311-manylinux_2_17_x86_64.whl.

File metadata

File hashes

Hashes for spglib-2.2.0-cp311-cp311-manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 0911f407c4a7f2f367a4fe42ba5d76a4fb4cca296b34d6c3ae44e8bb4e3a9473
MD5 b165276a2b2e0a132fd8b33e44934c20
BLAKE2b-256 b36a8c66d3ce30d1bda9c882bf02c362ac9ab70c98390ab1c321c5fd4fdb5205

See more details on using hashes here.

File details

Details for the file spglib-2.2.0-cp311-cp311-manylinux_2_17_aarch64.whl.

File metadata

File hashes

Hashes for spglib-2.2.0-cp311-cp311-manylinux_2_17_aarch64.whl
Algorithm Hash digest
SHA256 24d3b4d595840a2a1525d064f3bdf59d4f34df7d21eafae11df7e56694284f0d
MD5 19d2907c70650d3c701067933a69d6c6
BLAKE2b-256 5f81040e16e47baedcb0e9ae22e98304fb982703f717140e3ef83d04d0a2d64f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for spglib-2.2.0-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 7be4945c91ba7cdc1050c938aba2453d172c7a44b2d965f73c6e8ccd8d4bba86
MD5 ff2de28071b0e91246b25da8d4ca1b15
BLAKE2b-256 576451c172060d8920117133d2fab53751d7490d2d4da81312ba5f131f55e3b6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: spglib-2.2.0-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 292.2 kB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.7

File hashes

Hashes for spglib-2.2.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 f5e48e542b79d3232fff3cf3c5187f6955fe0edf358bea150c660016e7a2c9b2
MD5 eb50fd7519ba939fcc75e3ab12cf0554
BLAKE2b-256 95fd26112238be997a90dca4019ca596b5016f744704760b806bf30e4a0fc2d8

See more details on using hashes here.

File details

Details for the file spglib-2.2.0-cp310-cp310-manylinux_2_17_x86_64.whl.

File metadata

File hashes

Hashes for spglib-2.2.0-cp310-cp310-manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 56aa1ce2946e13d84d5426e69588f6fc9ea4b9567268f68b1b73afadd0c05c4d
MD5 be737eb954936250c9c409784c802620
BLAKE2b-256 b383f7b4d22fdd46bb219e98785e821642035624e398e822f69b096296fd3271

See more details on using hashes here.

File details

Details for the file spglib-2.2.0-cp310-cp310-manylinux_2_17_aarch64.whl.

File metadata

File hashes

Hashes for spglib-2.2.0-cp310-cp310-manylinux_2_17_aarch64.whl
Algorithm Hash digest
SHA256 9db322858bf85e449477e19f5a9bc40ff1d545319870fe555b36d424998319f5
MD5 382a3b81c87d0640c93b8f77770c7bf7
BLAKE2b-256 3b88e4398cff2d11d9031ec6a0a0069dc9fe9c62a46a7e333d12865c9a72e51a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for spglib-2.2.0-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 079d822b9b3c888ab3493927c50a13e05e1052822a5c909e46a30f13e331c641
MD5 db26e6a90258c39573a63a799d1d230e
BLAKE2b-256 851967d87a4663982accc788e52a6458d867edded436cf34d83a55715a23801b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: spglib-2.2.0-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 292.2 kB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.7

File hashes

Hashes for spglib-2.2.0-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 8d126fadd543f34503be716ef0d7980f7ea5afffc91e4e310bc48c1bc597170f
MD5 9892b4f7bc2b3b894c55f5d3223201ae
BLAKE2b-256 890a1e99d67ecd4729a43e71589890747eaf4495b8b3446ab00bab5ab739d6c5

See more details on using hashes here.

File details

Details for the file spglib-2.2.0-cp39-cp39-manylinux_2_17_x86_64.whl.

File metadata

File hashes

Hashes for spglib-2.2.0-cp39-cp39-manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 c44de3b5f2939936477b48f3e9ea80c12a796b47d663ff1ee0e35d88d06cc96f
MD5 181dd7706f43e0d60266ca4bf1e95b7a
BLAKE2b-256 87e26f7fbab5db71575e4696d0b56832106b3a98bb85ac554847b4e2be620b99

See more details on using hashes here.

File details

Details for the file spglib-2.2.0-cp39-cp39-manylinux_2_17_aarch64.whl.

File metadata

File hashes

Hashes for spglib-2.2.0-cp39-cp39-manylinux_2_17_aarch64.whl
Algorithm Hash digest
SHA256 4db1481f86ff15d7b1d7d88d27601b5c5f55d075bd1ca575c43133c0035587fc
MD5 bc12576fbf2df85777661e5a80af9508
BLAKE2b-256 74398e8057d18a9dcc0589ccbe0e932e628da0687a5fa8a9d5c41f732774baec

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for spglib-2.2.0-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 373502d78319c459896f71ea31e72f2e6c27c4152a5b64cffe59cec899b75d35
MD5 0e1cc278289dc997af55359bf9dd1122
BLAKE2b-256 29cb0c699e676a2f27cff27bf6d3369794d708cfe9d73504c7a7e3abbd6a118c

See more details on using hashes here.

File details

Details for the file spglib-2.2.0-cp38-cp38-win_amd64.whl.

File metadata

  • Download URL: spglib-2.2.0-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 292.2 kB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.7

File hashes

Hashes for spglib-2.2.0-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 41d5e50c3f79b34f9e49f447c6a5d1ea5255c94f0d1ae17d7dee19adcb6b5434
MD5 cb95a65e7fb230ce0f59c8d009b83dad
BLAKE2b-256 99eaffd4f5ec0e9384783097f9262751762afdb9435c52f24e25009afb22953f

See more details on using hashes here.

File details

Details for the file spglib-2.2.0-cp38-cp38-manylinux_2_17_x86_64.whl.

File metadata

File hashes

Hashes for spglib-2.2.0-cp38-cp38-manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 029bf782ae816af3989804e0a4a5a560b0acd63e595ae1d412073758d22be045
MD5 32713d20b79a4841a9def5f926b84679
BLAKE2b-256 39685e99df4bba0c1904ff8679948e431b22ec2e9541857bc700b61b2b2abd5a

See more details on using hashes here.

File details

Details for the file spglib-2.2.0-cp38-cp38-manylinux_2_17_aarch64.whl.

File metadata

File hashes

Hashes for spglib-2.2.0-cp38-cp38-manylinux_2_17_aarch64.whl
Algorithm Hash digest
SHA256 872d86529d6270dc84f74ae0def5126d899a21629b256ac5e8ff97d1fc5c00d1
MD5 f37c8354bceea5bf4cadbad535afad1a
BLAKE2b-256 bb1df588b43235d9afcb2d2888db2de525b4d69b727ed8fe3400f6b88bed4d81

See more details on using hashes here.

File details

Details for the file spglib-2.2.0-cp38-cp38-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for spglib-2.2.0-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 ce8bb8f6e30628425c22ee2e31490cbc8eb35299a416da7f152d44df3e781e91
MD5 83639bc8e7f2ff915e53e450fd7d9f86
BLAKE2b-256 d9e15ff30aa127df929ecc3cfa9770cc2a2bd23580b245dd5675bfb684246ba9

See more details on using hashes here.

File details

Details for the file spglib-2.2.0-cp37-cp37m-win_amd64.whl.

File metadata

  • Download URL: spglib-2.2.0-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 292.2 kB
  • Tags: CPython 3.7m, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.7

File hashes

Hashes for spglib-2.2.0-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 eabd5b430bcefbb651fd4bcb83d62be4469fe57a8a06fb9028980ef8bbf7c5bf
MD5 2b5a426acfd22cfcac86ca80b55ed276
BLAKE2b-256 ce28123d4c0634a7efe7b94e869fc50e42cd121ede0b8e80e8e1a524ed95a255

See more details on using hashes here.

File details

Details for the file spglib-2.2.0-cp37-cp37m-manylinux_2_17_x86_64.whl.

File metadata

File hashes

Hashes for spglib-2.2.0-cp37-cp37m-manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 98629129220b67ceea89c574a7ab0b28800983cb32fed34ab4befc316129504b
MD5 a2b2d0dc9c0095a1e5c8354abd1df79e
BLAKE2b-256 bb7ac2b23e902bb42d0a2232ab1cb37579d7cc4b53e7fa6f92cfca0300ebe119

See more details on using hashes here.

File details

Details for the file spglib-2.2.0-cp37-cp37m-manylinux_2_17_aarch64.whl.

File metadata

File hashes

Hashes for spglib-2.2.0-cp37-cp37m-manylinux_2_17_aarch64.whl
Algorithm Hash digest
SHA256 d682c0e354945477e57a7f83283da36f7a1e9ab7dd126413d02d353ce5fb9e62
MD5 1de036b14c01d5dbcc4c93d46dd17ab6
BLAKE2b-256 32b06586f29cb5b2af864f9e9661192e70ed4d6872cd0c0fc4a196b7d5281aff

See more details on using hashes here.

File details

Details for the file spglib-2.2.0-cp37-cp37m-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for spglib-2.2.0-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 ded9bca4bf4deb1bf6e2bdf2dd55f0a87c0d96826d599ecb8087c24e147be0d9
MD5 45ca1c7c3f7ac4427348091e44d67384
BLAKE2b-256 387b94340d62afa39374658fac561bd8847fcdd928b959e05091d82be34be80f

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